#8172CA

Closest named color: Deep Lilac (#966EBD). oklch(60.5% 0.131 289.7), rgb(129, 114, 202).

Aa

Black text reads best on this color (5.19:1).

About this color

#8172CA is a medium-dark, moderately saturated purple. In OKLCH its lightness is 60%, its chroma 0.131 and its hue 290°. Its hue sits on the cool side of the wheel. The nearest named color is Deep Lilac (#966EBD), ΔE 0.038 away. Black text reads best on it, at 5.19:1.

Hue familyPurples
Lightnessmedium-dark (60%)
Chromamoderately saturated (0.131)
Temperaturecool
Nearest nameDeep Lilac (#966EBD)
Black text5.19:1
White text4.04:1

Values

HEX#8172CA
RGBrgb(129, 114, 202)
HSLhsl(250, 45%, 62%)
OKLCHoklch(60.5% 0.131 289.7)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #8172CA 4.04:1 AA large text Lc -73.1 Content text, not long reading
Black text on #8172CA 5.19:1 AA Lc 36.5 Non-text elements, placeholder text
#8172CA text on white 4.04:1 AA large text Lc 67.6 Content text, not long reading
#8172CA text on black 5.19:1 AA Lc -34.1 Non-text elements, placeholder text

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 500.

  1. Step 50

    50

    #F5F5FB

    oklch(97.2% 0.008 286.3)

  2. Step 100

    100

    #E9E8F6

    oklch(93.6% 0.019 289.3)

  3. Step 200

    200

    #D8D6F0

    oklch(88.6% 0.036 289.2)

  4. Step 300

    300

    #BFBAE8

    oklch(80.8% 0.065 289.9)

  5. Step 400

    400

    #9F96DC

    oklch(70.7% 0.101 289.4)

  6. Step 500

    500 (this color)

    #8172CA

    oklch(60.5% 0.131 289.7)

  7. Step 600

    600

    #7361C0

    oklch(55.5% 0.143 289.6)

  8. Step 700

    700

    #6150A6

    oklch(49.1% 0.133 289.7)

  9. Step 800

    800

    #4F4286

    oklch(42.7% 0.109 289.7)

  10. Step 900

    900

    #41386B

    oklch(37.6% 0.085 289.8)

  11. Step 950

    950

    #26213F

    oklch(26.9% 0.055 289.9)

Export this scale for Tailwind in the Tailwind colors tool

#8172CA with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#5480CD0.064
Deuteranopia (no green cones)#557CC80.061
Tritanopia (no blue cones)#6E83940.110
Achromatopsia (no color)#7E7E7E0.132

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #8172CA

    #8172CA

    oklch(60.5% 0.131 289.7)

  • #878703

    #878703

    oklch(60.4% 0.131 109.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8172CA

    #8172CA

    oklch(60.5% 0.131 289.7)

  • #5181CF

    #5181CF

    oklch(60.5% 0.13 259.7)

  • #A365B2

    #A365B2

    oklch(60.3% 0.132 319.6)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #8172CA

    #8172CA

    oklch(60.5% 0.131 289.7)

  • #A97700

    #A97700

    oklch(60.4% 0.125 79.2)

  • #549444

    #549444

    oklch(60.5% 0.131 139.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8172CA

    #8172CA

    oklch(60.5% 0.131 289.7)

  • #BE6730

    #BE6730

    oklch(60.4% 0.13 50.1)

  • #009876

    #009876

    oklch(60.4% 0.12 169.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8172CA

    #8172CA

    oklch(60.5% 0.131 289.7)

  • #C35D61

    #C35D61

    oklch(60.3% 0.131 19.4)

  • #878703

    #878703

    oklch(60.4% 0.131 109.8)

  • #009499

    #009499

    oklch(60.5% 0.103 199)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #8172CA, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #8172CA in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.