#7871AF

Closest named color: Dark Lavender (#856798). oklch(58% 0.094 288.3), rgb(120, 113, 175).

Aa

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

About this color

#7871AF is a medium-dark, moderately saturated purple. In OKLCH its lightness is 58%, its chroma 0.094 and its hue 288°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Lavender (#856798), ΔE 0.042 away. Black text reads best on it, at 4.77:1.

Hue familyPurples
Lightnessmedium-dark (58%)
Chromamoderately saturated (0.094)
Temperaturecool
Nearest nameDark Lavender (#856798)
Black text4.77:1
White text4.39:1

Values

HEX#7871AF
RGBrgb(120, 113, 175)
HSLhsl(247, 28%, 56%)
OKLCHoklch(58% 0.094 288.3)

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 #7871AF 4.39:1 AA large text Lc -75.9 Fine for body text
Black text on #7871AF 4.77:1 AA Lc 33.7 Non-text elements, placeholder text
#7871AF text on white 4.39:1 AA large text Lc 70.4 Content text, not long reading
#7871AF text on black 4.77:1 AA Lc -31.3 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 600.

  1. Step 50

    50

    #F5F5F9

    oklch(97.1% 0.005 286.3)

  2. Step 100

    100

    #E9E9F2

    oklch(93.7% 0.012 286.2)

  3. Step 200

    200

    #D8D7E8

    oklch(88.5% 0.023 288.6)

  4. Step 300

    300

    #BFBDDB

    oklch(81% 0.042 288.5)

  5. Step 400

    400

    #9E9AC9

    oklch(70.6% 0.068 288.4)

  6. Step 500

    500

    #8781BB

    oklch(63.1% 0.086 288.4)

  7. Step 600

    600 (this color)

    #7871AF

    oklch(58% 0.094 288.3)

  8. Step 700

    700

    #5F588F

    oklch(49.1% 0.087 288.6)

  9. Step 800

    800

    #4D4874

    oklch(42.6% 0.072 288.1)

  10. Step 900

    900

    #403D5E

    oklch(37.8% 0.056 287.6)

  11. Step 950

    950

    #262437

    oklch(27.1% 0.035 288.7)

Export this scale for Tailwind in the Tailwind colors tool

#7871AF 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)#5F7AB10.039
Deuteranopia (no green cones)#5F77AD0.037
Tritanopia (no blue cones)#6B7C880.079
Achromatopsia (no color)#7878780.094

Harmonies

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

Complementary

The opposite hue (180°).

  • #7871AF

    #7871AF

    oklch(58% 0.094 288.3)

  • #807F37

    #807F37

    oklch(58.2% 0.094 108.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7871AF

    #7871AF

    oklch(58% 0.094 288.3)

  • #577BB2

    #577BB2

    oklch(58% 0.095 258.6)

  • #92689E

    #92689E

    oklch(58% 0.094 318.6)

Open the analogous palette in the generator

Split complementary

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

  • #7871AF

    #7871AF

    oklch(58% 0.094 288.3)

  • #997333

    #997333

    oklch(58.1% 0.094 78)

  • #5E8850

    #5E8850

    oklch(58.1% 0.094 138.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7871AF

    #7871AF

    oklch(58% 0.094 288.3)

  • #A86947

    #A86947

    oklch(58.2% 0.094 48.6)

  • #368C70

    #368C70

    oklch(58% 0.094 168.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7871AF

    #7871AF

    oklch(58% 0.094 288.3)

  • #AB6365

    #AB6365

    oklch(58.1% 0.093 18.6)

  • #807F37

    #807F37

    oklch(58.2% 0.094 108.3)

  • #178B8F

    #178B8F

    oklch(58% 0.094 198.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #7871AF 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.