#52235D#52235D

#52235D is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.9% C 0.109 H 319.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#52235D
RGBrgb(82, 35, 93)
HSLhsl(289, 45%, 25%)
HSVhsv(289, 62%, 36%)
CMYKcmyk(11.8%, 62.4%, 0%, 63.5%)
CIE-LABlab(22.95, 31.81, -25.32)
CIE-LCHlch(22.95, 40.66, 321.48°)
OKLaboklab(34.93% 0.083 -0.0705)
OKLCHoklch(34.93% 0.109 319.7)
XYZxyz(6.0562, 3.7865, 10.7657)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52235D #2E5D23
analogous
#35235D #52235D #5D234B
triadic
#52235D #5D5223 #235D52
tetradic
#52235D #5D3523 #2E5D23 #234B5D
square
#52235D #5D3523 #2E5D23 #234B5D
split-complementary
#52235D #4B5D23 #235D35
monochromatic
#140816 #2B1231 #52235D #793489 #A044B6

Accessibility & contrast

On white

11.95
#52235D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#52235D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52235D
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52235D#FFFFFF#000000##FFFFFF
##52235D1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16345F
Deuteranopia (green-blind)
#27385B
Tritanopia (blue-blind)
#522C3C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52235d;
/* rgb */ color: rgb(82, 35, 93);
/* oklch */ color: oklch(34.9% 0.109 319.7);
Tailwind
colors: {
  custom: {
    50: '#84618b',
    500: '#52235d',
    950: '#000000',
  },
}
SCSS
$custom: #52235d;
$custom-light: #84618b;
$custom-dark: #000000;
JSON
{
  "hex": "#52235d",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 93
  },
  "hsl": {
    "h": 288.621,
    "s": 45.312,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3493,
    "c": 0.10893,
    "h": 319.7
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#52235D
secondary
#58914B
accent
#D5536B
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #52235D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#52235D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva