Lavender Color / Colour Code #AF9FDF

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

    #AF9FDF

    Color Conversions

    HEX
    #AF9FDF
    RGB
    rgb(175, 159, 223)
    HSL
    hsl(255, 50%, 75%)
    HSV
    hsv(255, 29%, 87%)
    CMYK
    cmyk(22%, 29%, 0%, 13%)

    Accessibility Contrast

    WCAG contrast ratios for #AF9FDF against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    2.37:1
    AA FailAA Large FailAAA Fail
    Sample Text
    vs Black (#000000)
    8.85:1
    AA PassAA Large PassAAA Pass
    Sample Text
    vs Light Gray (#EEEEEE)
    2.05:1
    AA FailAA Large FailAAA Fail

    Complementary Colors

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

    Analogous Colors

    Hues at 225, 255, and 285 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 255, 15, and 135 degrees.

    Color Palettes Using #AF9FDF

    Monochromatic Scale

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

    #1D1339 #392673 #6040BF #9F8CD9 #CFC6EC
    Warm Harmony

    Adjacent hues from 255 to 300 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.

    #7053C6 #8C53C6 #A953C6 #C653C6
    Cool Contrast

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

    #6040BF #9FBF40 #60BF40 #40BF60
    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.

    #C2B8E0 #E0B8D6 #E0C2B8 #D6E0B8 #B8E0C2

    Shades & Tints of #AF9FDF

    Lightness variations at hue 255 and 50% saturation.

    CSS Gradients with #AF9FDF

    Purple to Green
    linear-gradient(135deg, #af9fdf, #cfdf9f)
    Analogous Fade
    linear-gradient(90deg, #af9fdf, #cf9fdf)
    Deep to Light
    linear-gradient(180deg, #221745, #c6bae8)
    Tricolor Sweep
    linear-gradient(135deg, #af9fdf, #dfaf9f, #9fdfaf)

    Design Use Cases for #AF9FDF

    Balanced UI Color

    At 50% saturation, #AF9FDF strikes a balance between vibrancy and restraint. This makes it versatile for primary UI elements like navigation bars, card headers, and form accents. It draws attention without overwhelming adjacent content.

    Light Background Tint

    #AF9FDF at 75% lightness creates a gentle tinted background. Use it for section backgrounds, alert banners, or card surfaces that need to stand out from a white page without strong contrast. It adds color personality while keeping the design light and open.

    Creativity & Premium Positioning

    #AF9FDF falls in the purple spectrum (hue 255). 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 #AF9FDF (hue 255) to its complement at hue 75. For a subtler effect, try pairing with an analogous color at hue 285. Use CSS: background: linear-gradient(135deg, #af9fdf, #cfdf9f);

    CSS Code for #AF9FDF

    /* Background */
    background-color: #af9fdf;
    background-color: rgb(175, 159, 223);
    background-color: hsl(255, 50%, 75%);
    /* Text */
    color: #af9fdf;
    /* Border */
    border: 2px solid #af9fdf;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(175, 159, 223, 0.3);
    /* CSS Variable */
    --color-primary: 255 50% 75%;

    Similar Colors

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

    Use This Color in Design Tools

    Apply #AF9FDF across image editing and color design tools.

    About Lavender (#AF9FDF)

    #AF9FDF is a purple color (colour) with RGB channel values of 175 red, 159 green, and 223 blue. The blue channel is dominant with a relatively balanced channel distribution. In HSL terms, the hue sits at 255 degrees with 50% saturation and 75% lightness, placing it in the cool range of the colour spectrum.

    The perceived brightness of #AF9FDF is 171/255 using the ITU-R BT.601 luma formula (0.299R + 0.587G + 0.114B). This is a medium-brightness color that can work with either dark or light text depending on font weight and size. For print production, the CMYK equivalent is 22% cyan, 29% magenta, 0% yellow, and 13% key (black).

    The WCAG contrast ratio of #AF9FDF against white is 2.37:1 and against black is 8.85:1. This does not meet AA requirements on white. Use it on dark backgrounds where it achieves 8.85:1, or use it exclusively for decorative purposes.

    The complementary colour #CFDF9F creates maximum visual tension when paired with #AF9FDF. For more harmonious color combinations, use the analogous colours #9FAFDF and #CF9FDF, 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 #AF9FDF

    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 #AF9FDF?
    #AF9FDF is Lavender, a purple color (colour) with RGB(175, 159, 223), HSL(255, 50%, 75%), and CMYK(22%, 29%, 0%, 13%). Its perceived brightness is 171/255.
    Is #AF9FDF accessible for text?
    Against white, #AF9FDF has a contrast ratio of 2.37:1 (fails AA for normal text). Against black, it has 8.85:1 (passes AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #AF9FDF?
    The complementary colour is #CFDF9F (hue 75). For subtle color combinations, use analogous colours #9FAFDF and #CF9FDF. The triadic palette adds #DFAF9F and #9FDFAF for vibrant variety.
    How do I use #AF9FDF in CSS?
    Use any format: color: #af9fdf; or rgb(175, 159, 223); or hsl(255, 50%, 75%). For CSS custom properties: --color-primary: 255 50% 75%; 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.