#5F42BF

Closest named color: Bluey Purple (#6241C7). oklch(48.4% 0.186 288.1), rgb(95, 66, 191).

Aa

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

About this color

#5F42BF is a medium-dark, vivid purple. In OKLCH its lightness is 48%, its chroma 0.186 and its hue 288°. Its hue sits on the cool side of the wheel. The nearest named color is Bluey Purple (#6241C7), ΔE 0.013 away. White text reads best on it, at 6.95:1.

Hue familyPurples
Lightnessmedium-dark (48%)
Chromavivid (0.186)
Temperaturecool
Nearest nameBluey Purple (#6241C7)
Black text3.01:1
White text6.95:1

Values

HEX#5F42BF
RGBrgb(95, 66, 191)
HSLhsl(254, 49%, 50%)
OKLCHoklch(48.4% 0.186 288.1)

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 #5F42BF 6.95:1 AA Lc -88.5 Fine for body text
Black text on #5F42BF 3.01:1 AA large text Lc 20.5 Dividers and decoration only
#5F42BF text on white 6.95:1 AA Lc 83.5 Fine for body text
#5F42BF text on black 3.01:1 AA large text Lc -18.4 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 700.

  1. Step 50

    50

    #F5F4FD

    oklch(97% 0.012 291.3)

  2. Step 100

    100

    #E8E8FB

    oklch(93.7% 0.026 285.9)

  3. Step 200

    200

    #D7D5F9

    oklch(88.6% 0.049 287.9)

  4. Step 300

    300

    #BDB8F8

    oklch(80.9% 0.09 287.8)

  5. Step 400

    400

    #9D90F4

    oklch(70.6% 0.144 288.1)

  6. Step 500

    500

    #8771F0

    oklch(63.1% 0.183 287.9)

  7. Step 600

    600

    #7355DF

    oklch(55.6% 0.2 288.1)

  8. Step 700

    700 (this color)

    #5F42BF

    oklch(48.4% 0.186 288.1)

  9. Step 800

    800

    #4F399C

    oklch(42.7% 0.154 288.4)

  10. Step 900

    900

    #41337C

    oklch(37.8% 0.119 288.2)

  11. Step 950

    950

    #261E49

    oklch(27% 0.077 288.7)

Export this scale for Tailwind in the Tailwind colors tool

#5F42BF 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)#005CC30.097
Deuteranopia (no green cones)#0056BC0.095
Tritanopia (no blue cones)#3D617B0.152
Achromatopsia (no color)#5959590.187

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F42BF

    #5F42BF

    oklch(48.4% 0.186 288.1)

  • #656300

    #656300

    oklch(48.6% 0.105 108.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F42BF

    #5F42BF

    oklch(48.4% 0.186 288.1)

  • #0058C1

    #0058C1

    oklch(48.3% 0.18 258.1)

  • #882EA1

    #882EA1

    oklch(48.4% 0.186 318)

Open the analogous palette in the generator

Split complementary

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

  • #5F42BF

    #5F42BF

    oklch(48.4% 0.186 288.1)

  • #7E5600

    #7E5600

    oklch(48.4% 0.101 77.5)

  • #2B7100

    #2B7100

    oklch(48.4% 0.15 138.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F42BF

    #5F42BF

    oklch(48.4% 0.186 288.1)

  • #984200

    #984200

    oklch(48.5% 0.132 48.1)

  • #007054

    #007054

    oklch(48.4% 0.098 168)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F42BF

    #5F42BF

    oklch(48.4% 0.186 288.1)

  • #AF1134

    #AF1134

    oklch(48.4% 0.185 18.1)

  • #656300

    #656300

    oklch(48.6% 0.105 108.4)

  • #006D70

    #006D70

    oklch(48.5% 0.083 198.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5F42BF 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.