Color #AF1997 Color / Colour Code #AF1997

    This page shows the hex color code for color #af1997 (#AF1997). The colour is a purple tone with 75% saturation and 39% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.

    #AF1997

    Color Conversions

    HEX
    #AF1997
    RGB
    rgb(175, 25, 151)
    HSL
    hsl(310, 75%, 39%)
    HSV
    hsv(310, 86%, 69%)
    CMYK
    cmyk(0%, 86%, 14%, 31%)

    Accessibility Contrast

    WCAG contrast ratios for #AF1997 against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    6.16:1
    AA PassAA Large PassAAA Fail
    Sample Text
    vs Black (#000000)
    3.41:1
    AA FailAA Large PassAAA Fail
    Sample Text
    vs Light Gray (#EEEEEE)
    5.31:1
    AA PassAA Large PassAAA Fail

    Complementary Colors

    #AF1997 paired with its color wheel opposite for maximum contrast.

    Analogous Colors

    Hues at 280, 310, and 340 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 310, 70, and 190 degrees.

    Color Palettes Using #AF1997

    Monochromatic Scale

    Five shades at lightness levels 15% through 85% while keeping hue at 310 and saturation at 75%. Use the darkest shade for text and the lightest for backgrounds to build a cohesive single-hue design system.

    #430A39 #861373 #DF20BF #EC79D9 #F5BCEC
    Warm Harmony

    Adjacent hues from 310 to 355 degrees create a warm, unified palette. This analogous scheme works for marketing materials, seasonal campaigns, and any design that needs visual warmth without clashing colors.

    #E236C6 #E2369B #E23670 #E23645
    Cool Contrast

    Combines the base color at hue 310 with its complement at 130 and two adjacent cool tones. This split-complementary approach provides strong visual contrast while remaining more balanced than a pure complementary scheme.

    #D926BB #26D944 #26D99D #26BBD9
    Pastel Variation

    Five evenly spaced hues at 40% saturation and 80% lightness. Pastels are gentle on the eyes and work well for dashboards, onboarding screens, category tags, and any interface where multiple distinct colors are needed without visual aggression.

    #E0B8DA #E0BEB8 #DAE0B8 #B8E0BE #B8DAE0

    Shades & Tints of #AF1997

    Lightness variations at hue 310 and 75% saturation.

    CSS Gradients with #AF1997

    Purple to Green
    linear-gradient(135deg, #af1997, #19ae32)
    Analogous Fade
    linear-gradient(90deg, #af1997, #ae194b)
    Deep to Light
    linear-gradient(180deg, #500b45, #f4afe8)
    Tricolor Sweep
    linear-gradient(135deg, #ae1995, #95ae19, #1995ae)

    Design Use Cases for #AF1997

    Vibrant Brand Color

    #AF1997 has a strong 75% saturation that makes it ideal for brand identity elements. Use it for logos, primary call-to-action buttons, hero section accents, and marketing materials where visual impact matters. This saturation level is eye-catching without being harsh.

    Primary Interface Color

    At 39% lightness, #AF1997 is in the mid-range, making it ideal for interactive elements like buttons, links, and selected states. This lightness level ensures good contrast against both light and dark adjacent elements in most layouts.

    Creativity & Premium Positioning

    #AF1997 falls in the purple spectrum (hue 310). Purple communicates creativity, wisdom, and luxury. It is effective for premium product highlights, creative portfolio accents, meditation app interfaces, and rewards program branding. Purple occupies a unique space between the energy of red and the calm of blue.

    Gradient Pairing

    Create a gradient from #AF1997 (hue 310) to its complement at hue 130. For a subtler effect, try pairing with an analogous color at hue 340. Use CSS: background: linear-gradient(135deg, #af1997, #19ae32);

    CSS Code for #AF1997

    /* Background */
    background-color: #af1997;
    background-color: rgb(175, 25, 151);
    background-color: hsl(310, 75%, 39%);
    /* Text */
    color: #af1997;
    /* Border */
    border: 2px solid #af1997;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(175, 25, 151, 0.3);
    /* CSS Variable */
    --color-primary: 310 75% 39%;

    Similar Colors

    Colors visually similar to #AF1997 based on RGB, lightness, and hue variations.

    Use This Color in Design Tools

    Apply #AF1997 across image editing and color design tools.

    About Color #AF1997 (#AF1997)

    #AF1997 is a purple color (colour) with RGB channel values of 175 red, 25 green, and 151 blue. The red channel is dominant by a ratio of 7.0:1 over the weakest channel. In HSL terms, the hue sits at 310 degrees with 75% saturation and 39% lightness, placing it in the warm range of the colour spectrum.

    The perceived brightness of #AF1997 is 84/255 using the ITU-R BT.601 luma formula (0.299R + 0.587G + 0.114B). This appears dark to the human eye, so pair it with light text for adequate readability. For print production, the CMYK equivalent is 0% cyan, 86% magenta, 14% yellow, and 31% key (black).

    The WCAG contrast ratio of #AF1997 against white is 6.16:1 and against black is 3.41:1. This meets the AA requirement (4.5:1) for normal text on white. For AAA compliance, consider darkening to at least 27% lightness.

    The complementary colour #19AE32 creates maximum visual tension when paired with #AF1997. For more harmonious color combinations, use the analogous colours #7C19AE and #AE194B, which sit 30 degrees on either side of the hue wheel. To build a complete design system, start with the monochromatic scale above for consistent shade variations, then add one complementary or triadic accent for interactive elements.

    How to Explore Color #AF1997

    1. Enter your color value in HEX format.
    2. The tool converts it to RGB, HSL, CMYK format in real time.
    3. Copy the converted value to your clipboard.

    Color Converter · Contrast Checker

    What is HEX to RGB, HSL, CMYK color conversion

    Converting from HEX to RGB, HSL, CMYK translates a color value between two different color models. Different color models are used in web design (HEX, RGB), print (CMYK), and color theory (HSL, HSV).

    Related Tools & Colors

    Frequently Asked Questions

    What color / colour is #AF1997?
    #AF1997 is Color #AF1997, a purple color (colour) with RGB(175, 25, 151), HSL(310, 75%, 39%), and CMYK(0%, 86%, 14%, 31%). Its perceived brightness is 84/255.
    Is #AF1997 accessible for text?
    Against white, #AF1997 has a contrast ratio of 6.16:1 (passes AA for normal text). Against black, it has 3.41:1 (fails AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #AF1997?
    The complementary colour is #19AE32 (hue 130). For subtle color combinations, use analogous colours #7C19AE and #AE194B. The triadic palette adds #95AE19 and #1995AE for vibrant variety.
    How do I use #AF1997 in CSS?
    Use any format: color: #af1997; or rgb(175, 25, 151); or hsl(310, 75%, 39%). For CSS custom properties: --color-primary: 310 75% 39%; then use it as hsl(var(--color-primary)).
    Is this color / colour explorer free?
    Yes, completely free with no signup required. All colour calculations run in your browser. You can explore any valid hex color code, not just the pre-generated palette.