#52236B

Closest named color: Royal Purple (#4B006E). oklch(35.9% 0.125 311.8), rgb(82, 35, 107).

Aa

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

About this color

#52236B is a dark, moderately saturated purple. In OKLCH its lightness is 36%, its chroma 0.125 and its hue 312°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Royal Purple (#4B006E), ΔE 0.054 away. White text reads best on it, at 11.59:1.

Hue familyPurples
Lightnessdark (36%)
Chromamoderately saturated (0.125)
Temperaturein between
Nearest nameRoyal Purple (#4B006E)
Black text1.81:1
White text11.59:1

Values

HEX#52236B
RGBrgb(82, 35, 107)
HSLhsl(279, 51%, 28%)
OKLCHoklch(35.9% 0.125 311.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 #52236B 11.59:1 AAA Lc -99.9 Preferred for body text
Black text on #52236B 1.81:1 Fails Lc 7.7 Not readable
#52236B text on white 11.59:1 AAA Lc 96.1 Preferred for body text
#52236B text on black 1.81:1 Fails Lc 0.0 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 900.

  1. Step 50

    50

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #F0E5F7

    oklch(93.6% 0.027 312.6)

  3. Step 200

    200

    #E5D0F3

    oklch(88.6% 0.052 311.9)

  4. Step 300

    300

    #D5B0ED

    oklch(81% 0.093 311.8)

  5. Step 400

    400

    #BF83E4

    oklch(70.7% 0.15 311.5)

  6. Step 500

    500

    #AF5FDC

    oklch(63.1% 0.192 311.7)

  7. Step 600

    600

    #9B41C9

    oklch(55.7% 0.208 311.9)

  8. Step 700

    700

    #8431AE

    oklch(49.1% 0.194 311.7)

  9. Step 800

    800

    #6B2A8D

    oklch(42.6% 0.161 311.6)

  10. Step 900

    900 (this color)

    #52236B

    oklch(35.9% 0.125 311.8)

  11. Step 950

    950

    #331942

    oklch(27.1% 0.078 311.5)

Export this scale for Tailwind in the Tailwind colors tool

#52236B 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)#01366D0.115
Deuteranopia (no green cones)#1C3A690.100
Tritanopia (no blue cones)#4F31430.085
Achromatopsia (no color)#3939390.126

Harmonies

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

Complementary

The opposite hue (180°).

  • #52236B

    #52236B

    oklch(35.9% 0.125 311.8)

  • #284700

    #284700

    oklch(36% 0.1 132)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #52236B

    #52236B

    oklch(35.9% 0.125 311.8)

  • #352F7B

    #352F7B

    oklch(35.9% 0.125 281.6)

  • #65194F

    #65194F

    oklch(35.9% 0.124 341.8)

Open the analogous palette in the generator

Split complementary

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

  • #52236B

    #52236B

    oklch(35.9% 0.125 311.8)

  • #453E00

    #453E00

    oklch(36% 0.075 102.3)

  • #004930

    #004930

    oklch(35.8% 0.078 162.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #52236B

    #52236B

    oklch(35.9% 0.125 311.8)

  • #553500

    #553500

    oklch(35.9% 0.077 72.3)

  • #004745

    #004745

    oklch(35.9% 0.062 191.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #52236B

    #52236B

    oklch(35.9% 0.125 311.8)

  • #692300

    #692300

    oklch(35.9% 0.108 41.9)

  • #284700

    #284700

    oklch(36% 0.1 132)

  • #004455

    #004455

    oklch(35.8% 0.066 221.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #52236B 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.