#5239A2

Closest named color: Blueberry (#464196). oklch(43.5% 0.161 288.8), rgb(82, 57, 162).

Aa

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

About this color

#5239A2 is a dark, vivid purple. In OKLCH its lightness is 43%, its chroma 0.161 and its hue 289°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.033 away. White text reads best on it, at 8.51:1.

Hue familyPurples
Lightnessdark (43%)
Chromavivid (0.161)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.46:1
White text8.51:1

Values

HEX#5239A2
RGBrgb(82, 57, 162)
HSLhsl(254, 48%, 43%)
OKLCHoklch(43.5% 0.161 288.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 #5239A2 8.51:1 AAA Lc -93.4 Preferred for body text
Black text on #5239A2 2.46:1 Fails Lc 15.2 Dividers and decoration only
#5239A2 text on white 8.51:1 AAA Lc 88.8 Fine for body text
#5239A2 text on black 2.46:1 Fails Lc -13.4 Not readable

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 800.

  1. Step 50

    50

    #F5F4FE

    oklch(97.1% 0.013 290.8)

  2. Step 100

    100

    #E9E7FC

    oklch(93.6% 0.028 290.2)

  3. Step 200

    200

    #D7D4FA

    oklch(88.4% 0.052 288.9)

  4. Step 300

    300

    #BEB7FA

    oklch(80.9% 0.094 288.9)

  5. Step 400

    400

    #9E8FF8

    oklch(70.7% 0.15 288.5)

  6. Step 500

    500

    #896EF4

    oklch(63% 0.193 288.9)

  7. Step 600

    600

    #7552E3

    oklch(55.7% 0.209 288.9)

  8. Step 700

    700

    #6341C5

    oklch(49.1% 0.194 289)

  9. Step 800

    800 (this color)

    #5239A2

    oklch(43.5% 0.161 288.8)

  10. Step 900

    900

    #42317F

    oklch(37.8% 0.126 288.9)

  11. Step 950

    950

    #261E4A

    oklch(27.1% 0.079 288.4)

Export this scale for Tailwind in the Tailwind colors tool

#5239A2 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)#004FA50.088
Deuteranopia (no green cones)#004AA00.086
Tritanopia (no blue cones)#3752680.131
Achromatopsia (no color)#4D4D4D0.162

Harmonies

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

Complementary

The opposite hue (180°).

  • #5239A2

    #5239A2

    oklch(43.5% 0.161 288.8)

  • #565500

    #565500

    oklch(43.6% 0.095 109)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5239A2

    #5239A2

    oklch(43.5% 0.161 288.8)

  • #064BA7

    #064BA7

    oklch(43.4% 0.161 258.8)

  • #752988

    #752988

    oklch(43.6% 0.161 318.9)

Open the analogous palette in the generator

Split complementary

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

  • #5239A2

    #5239A2

    oklch(43.5% 0.161 288.8)

  • #6B4A00

    #6B4A00

    oklch(43.4% 0.09 79.3)

  • #206100

    #206100

    oklch(43.4% 0.136 138.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5239A2

    #5239A2

    oklch(43.5% 0.161 288.8)

  • #823800

    #823800

    oklch(43.4% 0.117 48.5)

  • #006048

    #006048

    oklch(43.4% 0.088 168.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5239A2

    #5239A2

    oklch(43.5% 0.161 288.8)

  • #95142C

    #95142C

    oklch(43.4% 0.161 18.5)

  • #565500

    #565500

    oklch(43.6% 0.095 109)

  • #005D60

    #005D60

    oklch(43.4% 0.074 198.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5239A2 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.