#8166DC

Closest named color: Medium Slate Blue (#7B68EE). oklch(59.4% 0.173 290.7), rgb(129, 102, 220).

Aa

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

About this color

#8166DC is a medium-dark, vivid purple. In OKLCH its lightness is 59%, its chroma 0.173 and its hue 291°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Medium Slate Blue (#7B68EE), ΔE 0.029 away. Black text reads best on it, at 4.86:1.

Hue familyPurples
Lightnessmedium-dark (59%)
Chromavivid (0.173)
Temperaturein between
Nearest nameMedium Slate Blue (#7B68EE)
Black text4.86:1
White text4.31:1

Values

HEX#8166DC
RGBrgb(129, 102, 220)
HSLhsl(254, 63%, 63%)
OKLCHoklch(59.4% 0.173 290.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 #8166DC 4.31:1 AA large text Lc -75.1 Fine for body text
Black text on #8166DC 4.86:1 AA Lc 34.5 Non-text elements, placeholder text
#8166DC text on white 4.31:1 AA large text Lc 69.6 Content text, not long reading
#8166DC text on black 4.86:1 AA Lc -32.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

    #F5F4FD

    oklch(97% 0.012 291.3)

  2. Step 100

    100

    #E9E7FA

    oklch(93.5% 0.026 290.7)

  3. Step 200

    200

    #D8D4F7

    oklch(88.4% 0.048 290.6)

  4. Step 300

    300

    #C0B8F4

    oklch(81% 0.084 290.5)

  5. Step 400

    400

    #A190EE

    oklch(70.7% 0.135 290.8)

  6. Step 500

    500 (this color)

    #8166DC

    oklch(59.4% 0.173 290.7)

  7. Step 600

    600

    #7756D7

    oklch(55.6% 0.189 290.7)

  8. Step 700

    700

    #6446BA

    oklch(49.1% 0.174 290.4)

  9. Step 800

    800

    #523A97

    oklch(42.8% 0.145 290.8)

  10. Step 900

    900

    #433378

    oklch(37.7% 0.113 290.6)

  11. Step 950

    950

    #271F46

    oklch(27.1% 0.07 290.3)

Export this scale for Tailwind in the Tailwind colors tool

#8166DC 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)#2D7CE00.102
Deuteranopia (no green cones)#3277D90.097
Tritanopia (no blue cones)#687F970.142
Achromatopsia (no color)#7A7A7A0.174

Harmonies

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

Complementary

The opposite hue (180°).

  • #8166DC

    #8166DC

    oklch(59.4% 0.173 290.7)

  • #838500

    #838500

    oklch(59.5% 0.131 110.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8166DC

    #8166DC

    oklch(59.4% 0.173 290.7)

  • #3D7AE4

    #3D7AE4

    oklch(59.5% 0.173 260.6)

  • #AB55BC

    #AB55BC

    oklch(59.4% 0.173 320.8)

Open the analogous palette in the generator

Split complementary

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

  • #8166DC

    #8166DC

    oklch(59.4% 0.173 290.7)

  • #A47500

    #A47500

    oklch(59.4% 0.123 80.5)

  • #379624

    #379624

    oklch(59.4% 0.173 140.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8166DC

    #8166DC

    oklch(59.4% 0.173 290.7)

  • #C45D00

    #C45D00

    oklch(59.4% 0.155 51)

  • #009475

    #009475

    oklch(59.3% 0.116 171.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8166DC

    #8166DC

    oklch(59.4% 0.173 290.7)

  • #D14850

    #D14850

    oklch(59.4% 0.172 20.8)

  • #838500

    #838500

    oklch(59.5% 0.131 110.8)

  • #009097

    #009097

    oklch(59.4% 0.101 200.9)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #8166DC.

Similar named colors

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

Use #8166DC 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.