#5238A7

Closest named color: Blueberry (#464196). oklch(43.7% 0.169 288.1), rgb(82, 56, 167).

Aa

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

About this color

#5238A7 is a dark, vivid purple. In OKLCH its lightness is 44%, its chroma 0.169 and its hue 288°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.039 away. White text reads best on it, at 8.45:1.

Hue familyPurples
Lightnessdark (44%)
Chromavivid (0.169)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.48:1
White text8.45:1

Values

HEX#5238A7
RGBrgb(82, 56, 167)
HSLhsl(254, 50%, 44%)
OKLCHoklch(43.7% 0.169 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 #5238A7 8.45:1 AAA Lc -93.2 Preferred for body text
Black text on #5238A7 2.48:1 Fails Lc 15.4 Dividers and decoration only
#5238A7 text on white 8.45:1 AAA Lc 88.6 Fine for body text
#5238A7 text on black 2.48:1 Fails Lc -13.6 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

    #E8E7FD

    oklch(93.5% 0.03 287.9)

  3. Step 200

    200

    #D7D4FC

    oklch(88.5% 0.055 288.7)

  4. Step 300

    300

    #BDB7FD

    oklch(80.9% 0.098 287.9)

  5. Step 400

    400

    #9D8EFC

    oklch(70.7% 0.157 287.9)

  6. Step 500

    500

    #886DFA

    oklch(63.2% 0.202 288)

  7. Step 600

    600

    #744FE9

    oklch(55.6% 0.22 288.1)

  8. Step 700

    700

    #623ECA

    oklch(49.1% 0.204 288.3)

  9. Step 800

    800 (this color)

    #5238A7

    oklch(43.7% 0.169 288.1)

  10. Step 900

    900

    #413082

    oklch(37.7% 0.132 287.9)

  11. Step 950

    950

    #261D4C

    oklch(27% 0.083 288.3)

Export this scale for Tailwind in the Tailwind colors tool

#5238A7 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)#004FAA0.088
Deuteranopia (no green cones)#004AA50.086
Tritanopia (no blue cones)#34536A0.138
Achromatopsia (no color)#4D4D4D0.170

Harmonies

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

Complementary

The opposite hue (180°).

  • #5238A7

    #5238A7

    oklch(43.7% 0.169 288.1)

  • #575500

    #575500

    oklch(43.7% 0.094 108.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5238A7

    #5238A7

    oklch(43.7% 0.169 288.1)

  • #004CA9

    #004CA9

    oklch(43.7% 0.163 258.2)

  • #76268C

    #76268C

    oklch(43.6% 0.169 318)

Open the analogous palette in the generator

Split complementary

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

  • #5238A7

    #5238A7

    oklch(43.7% 0.169 288.1)

  • #6D4A00

    #6D4A00

    oklch(43.7% 0.091 77.7)

  • #246200

    #246200

    oklch(43.8% 0.136 138.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5238A7

    #5238A7

    oklch(43.7% 0.169 288.1)

  • #843800

    #843800

    oklch(43.7% 0.119 47.9)

  • #006148

    #006148

    oklch(43.7% 0.089 167.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5238A7

    #5238A7

    oklch(43.7% 0.169 288.1)

  • #990B2C

    #990B2C

    oklch(43.7% 0.169 18)

  • #575500

    #575500

    oklch(43.7% 0.094 108.2)

  • #005E61

    #005E61

    oklch(43.8% 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 #5238A7, closest first.

Similar named colors

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

Use #5238A7 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.