#786AB1

Closest named color: Dark Lavender (#856798). oklch(56.8% 0.108 291.6), rgb(120, 106, 177).

Aa

White text reads best on this color (4.67:1).

About this color

#786AB1 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 57%, its chroma 0.108 and its hue 292°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Lavender (#856798), ΔE 0.043 away. White text reads best on it, at 4.67:1.

Hue familyPurples
Lightnessmedium-dark (57%)
Chromamoderately saturated (0.108)
Temperaturein between
Nearest nameDark Lavender (#856798)
Black text4.49:1
White text4.67:1

Values

HEX#786AB1
RGBrgb(120, 106, 177)
HSLhsl(252, 31%, 55%)
OKLCHoklch(56.8% 0.108 291.6)

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 #786AB1 4.67:1 AA Lc -77.8 Fine for body text
Black text on #786AB1 4.49:1 AA large text Lc 31.7 Non-text elements, placeholder text
#786AB1 text on white 4.67:1 AA Lc 72.4 Content text, not long reading
#786AB1 text on black 4.49:1 AA large text Lc -29.3 Dividers and decoration only

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

    #F5F5FA

    oklch(97.2% 0.007 286.3)

  2. Step 100

    100

    #EAE8F3

    oklch(93.6% 0.015 294.5)

  3. Step 200

    200

    #D9D6EA

    oklch(88.4% 0.027 292.7)

  4. Step 300

    300

    #C0BCDE

    oklch(80.9% 0.048 290.7)

  5. Step 400

    400

    #A198CE

    oklch(70.7% 0.078 291.9)

  6. Step 500

    500

    #8A7EC1

    oklch(63.1% 0.1 291.5)

  7. Step 600

    600 (this color)

    #786AB1

    oklch(56.8% 0.108 291.6)

  8. Step 700

    700

    #625595

    oklch(49.1% 0.101 291.6)

  9. Step 800

    800

    #504679

    oklch(42.8% 0.083 291.5)

  10. Step 900

    900

    #423B61

    oklch(37.7% 0.064 291.5)

  11. Step 950

    950

    #272339

    oklch(27.1% 0.041 291.8)

Export this scale for Tailwind in the Tailwind colors tool

#786AB1 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)#5575B40.053
Deuteranopia (no green cones)#5673AF0.051
Tritanopia (no blue cones)#6B77850.090
Achromatopsia (no color)#7474740.108

Harmonies

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

Complementary

The opposite hue (180°).

  • #786AB1

    #786AB1

    oklch(56.8% 0.108 291.6)

  • #797C26

    #797C26

    oklch(56.7% 0.107 111.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #786AB1

    #786AB1

    oklch(56.8% 0.108 291.6)

  • #5276B6

    #5276B6

    oklch(56.8% 0.108 261.3)

  • #94609D

    #94609D

    oklch(56.8% 0.109 321.5)

Open the analogous palette in the generator

Split complementary

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

  • #786AB1

    #786AB1

    oklch(56.8% 0.108 291.6)

  • #976F1A

    #976F1A

    oklch(56.8% 0.108 81)

  • #508649

    #508649

    oklch(56.7% 0.107 141.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #786AB1

    #786AB1

    oklch(56.8% 0.108 291.6)

  • #A86336

    #A86336

    oklch(56.8% 0.108 52)

  • #0C8B6F

    #0C8B6F

    oklch(56.8% 0.108 171.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #786AB1

    #786AB1

    oklch(56.8% 0.108 291.6)

  • #AD5B5A

    #AD5B5A

    oklch(56.8% 0.107 21.7)

  • #797C26

    #797C26

    oklch(56.7% 0.107 111.3)

  • #00878F

    #00878F

    oklch(56.8% 0.097 202.1)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #786AB1.

Similar named colors

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

Use #786AB1 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.