Color #AFA8FF Color / Colour Code #AFA8FF

    This page shows the hex color code for color #afa8ff (#AFA8FF). The colour is a blue tone with 100% saturation and 83% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.

    #AFA8FF

    Color Conversions

    HEX
    #AFA8FF
    RGB
    rgb(175, 168, 255)
    HSL
    hsl(245, 100%, 83%)
    HSV
    hsv(245, 34%, 100%)
    CMYK
    cmyk(31%, 34%, 0%, 0%)

    Accessibility Contrast

    WCAG contrast ratios for #AFA8FF against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    2.13:1
    AA FailAA Large FailAAA Fail
    Sample Text
    vs Black (#000000)
    9.87:1
    AA PassAA Large PassAAA Pass
    Sample Text
    vs Light Gray (#EEEEEE)
    1.83:1
    AA FailAA Large FailAAA Fail

    Complementary Colors

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

    Analogous Colors

    Hues at 215, 245, and 275 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 245, 5, and 125 degrees.

    Color Palettes Using #AFA8FF

    Monochromatic Scale

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

    #06004D #0D0099 #1500FF #7366FF #B9B3FF
    Warm Harmony

    Adjacent hues from 245 to 290 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.

    #4030E8 #6E30E8 #9C30E8 #C930E8
    Cool Contrast

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

    #3526D9 #CAD926 #71D926 #26D935
    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.

    #BBB8E0 #E0B8DD #E0BBB8 #DDE0B8 #B8E0BB

    Shades & Tints of #AFA8FF

    Lightness variations at hue 245 and 100% saturation.

    CSS Gradients with #AFA8FF

    Blue to Yellow
    linear-gradient(135deg, #afa8ff, #f8ffa8)
    Analogous Fade
    linear-gradient(90deg, #afa8ff, #dba8ff)
    Deep to Light
    linear-gradient(180deg, #08005c, #aba3ff)
    Tricolor Sweep
    linear-gradient(135deg, #b0a8ff, #ffb0a8, #a8ffb0)

    Design Use Cases for #AFA8FF

    High-Impact Accent

    With 100% saturation, #AFA8FF is highly vivid. Reserve this for elements that need maximum attention: primary action buttons, notification badges, error states, or promotional banners. Use sparingly alongside neutral tones to avoid visual fatigue.

    Light Background Tint

    #AFA8FF at 83% 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.

    Trust & Professional Identity

    #AFA8FF sits in the blue range (hue 245). Blue is the world's most popular color for corporate identities because it conveys trust, stability, and competence. Use it for navigation bars, link text, form focus states, and any element where user confidence matters. Financial, healthcare, and technology brands rely heavily on this hue range.

    Gradient Pairing

    Create a gradient from #AFA8FF (hue 245) to its complement at hue 65. For a subtler effect, try pairing with an analogous color at hue 275. Use CSS: background: linear-gradient(135deg, #afa8ff, #f8ffa8);

    CSS Code for #AFA8FF

    /* Background */
    background-color: #afa8ff;
    background-color: rgb(175, 168, 255);
    background-color: hsl(245, 100%, 83%);
    /* Text */
    color: #afa8ff;
    /* Border */
    border: 2px solid #afa8ff;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(175, 168, 255, 0.3);
    /* CSS Variable */
    --color-primary: 245 100% 83%;

    Similar Colors

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

    Use This Color in Design Tools

    Apply #AFA8FF across image editing and color design tools.

    About Color #AFA8FF (#AFA8FF)

    #AFA8FF is a blue color (colour) with RGB channel values of 175 red, 168 green, and 255 blue. The blue channel is dominant with a relatively balanced channel distribution. In HSL terms, the hue sits at 245 degrees with 100% saturation and 83% lightness, placing it in the cool range of the colour spectrum.

    The perceived brightness of #AFA8FF is 180/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 31% cyan, 34% magenta, 0% yellow, and 0% key (black).

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

    The complementary colour #F8FFA8 creates maximum visual tension when paired with #AFA8FF. For more harmonious color combinations, use the analogous colours #A8CCFF and #DBA8FF, 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 #AFA8FF

    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 #AFA8FF?
    #AFA8FF is Color #AFA8FF, a blue color (colour) with RGB(175, 168, 255), HSL(245, 100%, 83%), and CMYK(31%, 34%, 0%, 0%). Its perceived brightness is 180/255.
    Is #AFA8FF accessible for text?
    Against white, #AFA8FF has a contrast ratio of 2.13:1 (fails AA for normal text). Against black, it has 9.87:1 (passes AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #AFA8FF?
    The complementary colour is #F8FFA8 (hue 65). For subtle color combinations, use analogous colours #A8CCFF and #DBA8FF. The triadic palette adds #FFB0A8 and #A8FFB0 for vibrant variety.
    How do I use #AFA8FF in CSS?
    Use any format: color: #afa8ff; or rgb(175, 168, 255); or hsl(245, 100%, 83%). For CSS custom properties: --color-primary: 245 100% 83%; 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.