#5842C1

Closest named color: Blue With A Hint Of Purple (#533CC6). oklch(48% 0.189 284.7), rgb(88, 66, 193).

Aa

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

About this color

#5842C1 is a medium-dark, vivid purple. In OKLCH its lightness is 48%, its chroma 0.189 and its hue 285°. Its hue sits on the cool side of the wheel. The nearest named color is Blue With A Hint Of Purple (#533CC6), ΔE 0.017 away. White text reads best on it, at 7.08:1.

Hue familyPurples
Lightnessmedium-dark (48%)
Chromavivid (0.189)
Temperaturecool
Nearest nameBlue With A Hint Of Purple (#533CC6)
Black text2.96:1
White text7.08:1

Values

HEX#5842C1
RGBrgb(88, 66, 193)
HSLhsl(250, 51%, 51%)
OKLCHoklch(48% 0.189 284.7)

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 #5842C1 7.08:1 AAA Lc -89.0 Fine for body text
Black text on #5842C1 2.96:1 Fails Lc 20.0 Dividers and decoration only
#5842C1 text on white 7.08:1 AAA Lc 84.0 Fine for body text
#5842C1 text on black 2.96:1 Fails Lc -18.0 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

    #F4F4FE

    oklch(97% 0.013 286.1)

  2. Step 100

    100

    #E7E8FB

    oklch(93.6% 0.026 283.5)

  3. Step 200

    200

    #D5D5FA

    oklch(88.5% 0.051 285.3)

  4. Step 300

    300

    #BAB9FA

    oklch(81% 0.091 284.9)

  5. Step 400

    400

    #9892F7

    oklch(70.8% 0.145 284.8)

  6. Step 500

    500

    #8173F4

    oklch(63.2% 0.186 284.7)

  7. Step 600

    600

    #6C57E3

    oklch(55.7% 0.203 284.5)

  8. Step 700

    700 (this color)

    #5842C1

    oklch(48% 0.189 284.7)

  9. Step 800

    800

    #4A3A9F

    oklch(42.6% 0.157 284.8)

  10. Step 900

    900

    #3D347E

    oklch(37.8% 0.121 284.6)

  11. Step 950

    950

    #231F4A

    oklch(27% 0.077 284.2)

Export this scale for Tailwind in the Tailwind colors tool

#5842C1 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)#005CC50.088
Deuteranopia (no green cones)#0054BE0.084
Tritanopia (no blue cones)#2A627C0.157
Achromatopsia (no color)#5858580.190

Harmonies

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

Complementary

The opposite hue (180°).

  • #5842C1

    #5842C1

    oklch(48% 0.189 284.7)

  • #676000

    #676000

    oklch(48% 0.102 104.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5842C1

    #5842C1

    oklch(48% 0.189 284.7)

  • #005CB2

    #005CB2

    oklch(48% 0.155 254.5)

  • #832DA5

    #832DA5

    oklch(47.9% 0.189 314.5)

Open the analogous palette in the generator

Split complementary

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

  • #5842C1

    #5842C1

    oklch(48% 0.189 284.7)

  • #7F5400

    #7F5400

    oklch(48.1% 0.102 74.8)

  • #386D00

    #386D00

    oklch(47.9% 0.139 134.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5842C1

    #5842C1

    oklch(48% 0.189 284.7)

  • #9A3D00

    #9A3D00

    oklch(48.1% 0.138 44.8)

  • #006F4F

    #006F4F

    oklch(48% 0.101 164.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5842C1

    #5842C1

    oklch(48% 0.189 284.7)

  • #AE063A

    #AE063A

    oklch(47.9% 0.189 14.7)

  • #676000

    #676000

    oklch(48% 0.102 104.6)

  • #006C6C

    #006C6C

    oklch(48.1% 0.082 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 #5842C1, closest first.

Similar named colors

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

Use #5842C1 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.