#786ED8

Closest named color: Medium Slate Blue (#7B68EE). oklch(59.8% 0.157 284.9), rgb(120, 110, 216).

Aa

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

About this color

#786ED8 is a medium-dark, vivid purple. In OKLCH its lightness is 60%, its chroma 0.157 and its hue 285°. Its hue sits on the cool side of the wheel. The nearest named color is Medium Slate Blue (#7B68EE), ΔE 0.038 away. Black text reads best on it, at 5.02:1.

Hue familyPurples
Lightnessmedium-dark (60%)
Chromavivid (0.157)
Temperaturecool
Nearest nameMedium Slate Blue (#7B68EE)
Black text5.02:1
White text4.18:1

Values

HEX#786ED8
RGBrgb(120, 110, 216)
HSLhsl(246, 58%, 64%)
OKLCHoklch(59.8% 0.157 284.9)

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 #786ED8 4.18:1 AA large text Lc -74.1 Content text, not long reading
Black text on #786ED8 5.02:1 AA Lc 35.5 Non-text elements, placeholder text
#786ED8 text on white 4.18:1 AA large text Lc 68.6 Content text, not long reading
#786ED8 text on black 5.02:1 AA Lc -33.0 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

    #F4F5FC

    oklch(97.1% 0.009 279.7)

  2. Step 100

    100

    #E8E8F9

    oklch(93.6% 0.023 286)

  3. Step 200

    200

    #D5D6F5

    oklch(88.5% 0.042 284)

  4. Step 300

    300

    #BBBAF1

    oklch(80.9% 0.077 285.4)

  5. Step 400

    400

    #9995EA

    oklch(70.7% 0.123 284.9)

  6. Step 500

    500 (this color)

    #786ED8

    oklch(59.8% 0.157 284.9)

  7. Step 600

    600

    #6C5ED1

    oklch(55.5% 0.171 284.9)

  8. Step 700

    700

    #5B4DB5

    oklch(49.1% 0.158 285.1)

  9. Step 800

    800

    #4A4093

    oklch(42.8% 0.132 284.8)

  10. Step 900

    900

    #3D3775

    oklch(37.7% 0.103 284.7)

  11. Step 950

    950

    #242144

    oklch(27.1% 0.064 285.2)

Export this scale for Tailwind in the Tailwind colors tool

#786ED8 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)#407FDC0.072
Deuteranopia (no green cones)#3D79D60.072
Tritanopia (no blue cones)#5A84990.132
Achromatopsia (no color)#7C7C7C0.157

Harmonies

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

Complementary

The opposite hue (180°).

  • #786ED8

    #786ED8

    oklch(59.8% 0.157 284.9)

  • #8C8300

    #8C8300

    oklch(59.9% 0.127 104.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #786ED8

    #786ED8

    oklch(59.8% 0.157 284.9)

  • #3480DA

    #3480DA

    oklch(59.8% 0.156 254.8)

  • #A25EBF

    #A25EBF

    oklch(59.8% 0.157 314.9)

Open the analogous palette in the generator

Split complementary

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

  • #786ED8

    #786ED8

    oklch(59.8% 0.157 284.9)

  • #AB7300

    #AB7300

    oklch(59.9% 0.126 75.1)

  • #539322

    #539322

    oklch(59.8% 0.157 134.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #786ED8

    #786ED8

    oklch(59.8% 0.157 284.9)

  • #C95A1E

    #C95A1E

    oklch(59.9% 0.157 44.7)

  • #00976C

    #00976C

    oklch(59.9% 0.127 164.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #786ED8

    #786ED8

    oklch(59.8% 0.157 284.9)

  • #CB5061

    #CB5061

    oklch(59.7% 0.156 14.9)

  • #8C8300

    #8C8300

    oklch(59.9% 0.127 104.8)

  • #009292

    #009292

    oklch(59.8% 0.102 194.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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