#7872EF

Closest named color: Medium Slate Blue (#7B68EE). oklch(62% 0.182 281.8), rgb(120, 114, 239).

Aa

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

About this color

#7872EF is a medium-light, vivid purple. In OKLCH its lightness is 62%, its chroma 0.182 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Medium Slate Blue (#7B68EE), ΔE 0.023 away. Black text reads best on it, at 5.45:1.

Hue familyPurples
Lightnessmedium-light (62%)
Chromavivid (0.182)
Temperaturecool
Nearest nameMedium Slate Blue (#7B68EE)
Black text5.45:1
White text3.85:1

Values

HEX#7872EF
RGBrgb(120, 114, 239)
HSLhsl(243, 80%, 69%)
OKLCHoklch(62% 0.182 281.8)

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 #7872EF 3.85:1 AA large text Lc -71.2 Content text, not long reading
Black text on #7872EF 5.45:1 AA Lc 38.4 Non-text elements, placeholder text
#7872EF text on white 3.85:1 AA large text Lc 65.7 Content text, not long reading
#7872EF text on black 5.45:1 AA Lc -35.9 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

    #F4F5FE

    oklch(97.2% 0.012 281.1)

  2. Step 100

    100

    #E7E8FB

    oklch(93.6% 0.026 283.5)

  3. Step 200

    200

    #D3D6FA

    oklch(88.5% 0.05 281.6)

  4. Step 300

    300

    #B7BAF9

    oklch(80.9% 0.089 282.1)

  5. Step 400

    400

    #9394F7

    oklch(70.8% 0.143 281.7)

  6. Step 500

    500 (this color)

    #7872EF

    oklch(62% 0.182 281.8)

  7. Step 600

    600

    #665AE1

    oklch(55.5% 0.198 281.8)

  8. Step 700

    700

    #5649C4

    oklch(49.2% 0.184 282)

  9. Step 800

    800

    #463D9E

    oklch(42.7% 0.152 282)

  10. Step 900

    900

    #3A357E

    oklch(37.7% 0.12 282.1)

  11. Step 950

    950

    #21204A

    oklch(27% 0.076 281.1)

Export this scale for Tailwind in the Tailwind colors tool

#7872EF 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)#2F86F30.081
Deuteranopia (no green cones)#237DEC0.084
Tritanopia (no blue cones)#4A8EA60.157
Achromatopsia (no color)#8282820.183

Harmonies

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

Complementary

The opposite hue (180°).

  • #7872EF

    #7872EF

    oklch(62% 0.182 281.8)

  • #968800

    #968800

    oklch(62% 0.13 102.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7872EF

    #7872EF

    oklch(62% 0.182 281.8)

  • #0887EF

    #0887EF

    oklch(62% 0.183 252)

  • #AA5FD4

    #AA5FD4

    oklch(62% 0.182 311.8)

Open the analogous palette in the generator

Split complementary

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

  • #7872EF

    #7872EF

    oklch(62% 0.182 281.8)

  • #B77600

    #B77600

    oklch(62% 0.133 71.3)

  • #5D9A00

    #5D9A00

    oklch(62% 0.172 131.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7872EF

    #7872EF

    oklch(62% 0.182 281.8)

  • #DC550F

    #DC550F

    oklch(62% 0.183 41.7)

  • #009F6C

    #009F6C

    oklch(62.1% 0.137 161.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7872EF

    #7872EF

    oklch(62% 0.182 281.8)

  • #DD4A69

    #DD4A69

    oklch(62% 0.183 11.7)

  • #968800

    #968800

    oklch(62% 0.13 102.2)

  • #009A96

    #009A96

    oklch(62% 0.107 191.5)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #7872EF.

Similar named colors

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

Use #7872EF 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.