#7F5EFE

Closest named color: Medium Slate Blue (#7B68EE). oklch(60.4% 0.226 287), rgb(127, 94, 254).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (60%)
Chromavivid (0.226)
Temperaturecool
Nearest nameMedium Slate Blue (#7B68EE)
Black text4.93:1
White text4.25:1

Values

HEX#7F5EFE
RGBrgb(127, 94, 254)
HSLhsl(252, 99%, 68%)
OKLCHoklch(60.4% 0.226 287)

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 #7F5EFE 4.25:1 AA large text Lc -74.4 Content text, not long reading
Black text on #7F5EFE 4.93:1 AA Lc 35.2 Non-text elements, placeholder text
#7F5EFE text on white 4.25:1 AA large text Lc 68.9 Content text, not long reading
#7F5EFE text on black 4.93:1 AA Lc -32.8 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

    #F4F4FF

    oklch(97% 0.015 286.1)

  2. Step 100

    100

    #E8E7FF

    oklch(93.6% 0.032 287.7)

  3. Step 200

    200

    #D6D4FF

    oklch(88.5% 0.059 287.3)

  4. Step 300

    300

    #BCB7FF

    oklch(80.9% 0.101 287.1)

  5. Step 400

    400

    #9B8EFF

    oklch(70.7% 0.161 286.8)

  6. Step 500

    500 (this color)

    #7F5EFE

    oklch(60.4% 0.226 287)

  7. Step 600

    600

    #7346F7

    oklch(55.5% 0.246 287.1)

  8. Step 700

    700

    #6135D8

    oklch(49.1% 0.229 286.9)

  9. Step 800

    800

    #4F2EAE

    oklch(42.6% 0.19 287.2)

  10. Step 900

    900

    #412C8A

    oklch(37.7% 0.148 287.3)

  11. Step 950

    950

    #251B51

    oklch(27% 0.094 286.7)

Export this scale for Tailwind in the Tailwind colors tool

#7F5EFE 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)#007FFF0.117
Deuteranopia (no green cones)#0076FB0.113
Tritanopia (no blue cones)#5085A60.187
Achromatopsia (no color)#7B7B7B0.227

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F5EFE

    #7F5EFE

    oklch(60.4% 0.226 287)

  • #8B8600

    #8B8600

    oklch(60.5% 0.13 107.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F5EFE

    #7F5EFE

    oklch(60.4% 0.226 287)

  • #007BFD

    #007BFD

    oklch(60.3% 0.214 257)

  • #B545D8

    #B545D8

    oklch(60.4% 0.226 317)

Open the analogous palette in the generator

Split complementary

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

  • #7F5EFE

    #7F5EFE

    oklch(60.4% 0.226 287)

  • #AB7500

    #AB7500

    oklch(60.3% 0.126 76.6)

  • #439800

    #439800

    oklch(60.3% 0.183 137.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F5EFE

    #7F5EFE

    oklch(60.4% 0.226 287)

  • #CE5900

    #CE5900

    oklch(60.4% 0.168 46.8)

  • #009872

    #009872

    oklch(60.3% 0.123 167.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F5EFE

    #7F5EFE

    oklch(60.4% 0.226 287)

  • #E9224E

    #E9224E

    oklch(60.4% 0.226 16.9)

  • #8B8600

    #8B8600

    oklch(60.5% 0.13 107.1)

  • #009496

    #009496

    oklch(60.4% 0.103 196.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #7F5EFE 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.