Color #AF42C2 Color / Colour Code #AF42C2

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

    #AF42C2

    Color Conversions

    HEX
    #AF42C2
    RGB
    rgb(175, 66, 194)
    HSL
    hsl(291, 51%, 51%)
    HSV
    hsv(291, 66%, 76%)
    CMYK
    cmyk(10%, 66%, 0%, 24%)

    Accessibility Contrast

    WCAG contrast ratios for #AF42C2 against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    4.79:1
    AA PassAA Large PassAAA Fail
    Sample Text
    vs Black (#000000)
    4.38:1
    AA FailAA Large PassAAA Fail
    Sample Text
    vs Light Gray (#EEEEEE)
    4.13:1
    AA FailAA Large PassAAA Fail

    Complementary Colors

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

    Analogous Colors

    Hues at 261, 291, and 321 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 291, 51, and 171 degrees.

    Color Palettes Using #AF42C2

    Monochromatic Scale

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

    #34133A #682574 #AD3EC1 #CE8BDA #E6C5EC
    Warm Harmony

    Adjacent hues from 291 to 336 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.

    #B552C7 #C752BB #C7529E #C75281
    Cool Contrast

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

    #AD3EC1 #52C13E #3EC16C #3EC1AD
    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.

    #DAB8E0 #E0B8BE #E0DAB8 #BEE0B8 #B8E0DA

    Shades & Tints of #AF42C2

    Lightness variations at hue 291 and 51% saturation.

    CSS Gradients with #AF42C2

    Purple to Green
    linear-gradient(135deg, #af42c2, #55c242)
    Analogous Fade
    linear-gradient(90deg, #af42c2, #c24295)
    Deep to Light
    linear-gradient(180deg, #3e1645, #e1bae9)
    Tricolor Sweep
    linear-gradient(135deg, #af42c2, #c2af42, #42c2af)

    Design Use Cases for #AF42C2

    Balanced UI Color

    At 51% saturation, #AF42C2 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.

    Soft Accent & Highlight

    With 51% lightness, #AF42C2 has a softer, more approachable quality. It works well for hover states, subtle highlights, progress indicators, and secondary UI elements. This lightness range is particularly effective for tag backgrounds and status indicators.

    Creativity & Premium Positioning

    #AF42C2 falls in the purple spectrum (hue 291). 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 #AF42C2 (hue 291) to its complement at hue 111. For a subtler effect, try pairing with an analogous color at hue 321. Use CSS: background: linear-gradient(135deg, #af42c2, #55c242);

    CSS Code for #AF42C2

    /* Background */
    background-color: #af42c2;
    background-color: rgb(175, 66, 194);
    background-color: hsl(291, 51%, 51%);
    /* Text */
    color: #af42c2;
    /* Border */
    border: 2px solid #af42c2;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(175, 66, 194, 0.3);
    /* CSS Variable */
    --color-primary: 291 51% 51%;

    Similar Colors

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

    Use This Color in Design Tools

    Apply #AF42C2 across image editing and color design tools.

    About Color #AF42C2 (#AF42C2)

    #AF42C2 is a purple color (colour) with RGB channel values of 175 red, 66 green, and 194 blue. The blue channel is dominant by a ratio of 2.9:1 over the weakest channel. In HSL terms, the hue sits at 291 degrees with 51% saturation and 51% lightness, placing it in the cool range of the colour spectrum.

    The perceived brightness of #AF42C2 is 113/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 10% cyan, 66% magenta, 0% yellow, and 24% key (black).

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

    The complementary colour #55C242 creates maximum visual tension when paired with #AF42C2. For more harmonious color combinations, use the analogous colours #6F42C2 and #C24295, 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 #AF42C2

    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 #AF42C2?
    #AF42C2 is Color #AF42C2, a purple color (colour) with RGB(175, 66, 194), HSL(291, 51%, 51%), and CMYK(10%, 66%, 0%, 24%). Its perceived brightness is 113/255.
    Is #AF42C2 accessible for text?
    Against white, #AF42C2 has a contrast ratio of 4.79:1 (passes AA for normal text). Against black, it has 4.38:1 (fails AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #AF42C2?
    The complementary colour is #55C242 (hue 111). For subtle color combinations, use analogous colours #6F42C2 and #C24295. The triadic palette adds #C2AF42 and #42C2AF for vibrant variety.
    How do I use #AF42C2 in CSS?
    Use any format: color: #af42c2; or rgb(175, 66, 194); or hsl(291, 51%, 51%). For CSS custom properties: --color-primary: 291 51% 51%; 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.