#7871F6

Closest named color: Medium Slate Blue (#7B68EE). oklch(62.3% 0.193 281.6), rgb(120, 113, 246).

Aa

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

About this color

#7871F6 is a medium-light, vivid purple. In OKLCH its lightness is 62%, its chroma 0.193 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.49:1.

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

Values

HEX#7871F6
RGBrgb(120, 113, 246)
HSLhsl(243, 88%, 70%)
OKLCHoklch(62.3% 0.193 281.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 #7871F6 3.82:1 AA large text Lc -70.9 Content text, not long reading
Black text on #7871F6 5.49:1 AA Lc 38.6 Non-text elements, placeholder text
#7871F6 text on white 3.82:1 AA large text Lc 65.4 Content text, not long reading
#7871F6 text on black 5.49:1 AA Lc -36.2 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

    #E6E8FC

    oklch(93.5% 0.027 281.3)

  3. Step 200

    200

    #D3D6FC

    oklch(88.6% 0.052 281.7)

  4. Step 300

    300

    #B6BAFD

    oklch(81% 0.094 281.4)

  5. Step 400

    400

    #9293FB

    oklch(70.7% 0.15 281.4)

  6. Step 500

    500 (this color)

    #7871F6

    oklch(62.3% 0.193 281.6)

  7. Step 600

    600

    #6657E8

    oklch(55.6% 0.21 281.8)

  8. Step 700

    700

    #5546CA

    oklch(49.1% 0.196 281.6)

  9. Step 800

    800

    #453BA3

    oklch(42.7% 0.161 281.5)

  10. Step 900

    900

    #393481

    oklch(37.6% 0.126 281.4)

  11. Step 950

    950

    #211F4C

    oklch(26.9% 0.081 281.5)

Export this scale for Tailwind in the Tailwind colors tool

#7871F6 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)#1F87FB0.088
Deuteranopia (no green cones)#037EF30.092
Tritanopia (no blue cones)#448FA90.165
Achromatopsia (no color)#8282820.193

Harmonies

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

Complementary

The opposite hue (180°).

  • #7871F6

    #7871F6

    oklch(62.3% 0.193 281.6)

  • #988900

    #988900

    oklch(62.4% 0.131 101.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7871F6

    #7871F6

    oklch(62.3% 0.193 281.6)

  • #0088F1

    #0088F1

    oklch(62.3% 0.185 251.7)

  • #AD5CDA

    #AD5CDA

    oklch(62.3% 0.194 311.7)

Open the analogous palette in the generator

Split complementary

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

  • #7871F6

    #7871F6

    oklch(62.3% 0.193 281.6)

  • #B87700

    #B87700

    oklch(62.3% 0.134 71.5)

  • #5F9B00

    #5F9B00

    oklch(62.4% 0.172 131.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7871F6

    #7871F6

    oklch(62.3% 0.193 281.6)

  • #E05300

    #E05300

    oklch(62.4% 0.19 41.6)

  • #00A06C

    #00A06C

    oklch(62.3% 0.138 161.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7871F6

    #7871F6

    oklch(62.3% 0.193 281.6)

  • #E24568

    #E24568

    oklch(62.3% 0.193 11.8)

  • #988900

    #988900

    oklch(62.4% 0.131 101.7)

  • #009B97

    #009B97

    oklch(62.3% 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 #7871F6, closest first.

No curated palette has a color within ΔE 0.04 of #7871F6.

Similar named colors

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

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