#52234D#52234D

#52234D is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.0% C 0.092 H 331.6°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#52234D
RGBrgb(82, 35, 77)
HSLhsl(306, 40%, 23%)
HSVhsv(306, 57%, 32%)
CMYKcmyk(0%, 57.3%, 6.1%, 67.8%)
CIE-LABlab(22.06, 28.40, -16.06)
CIE-LCHlch(22.06, 32.63, 330.52°)
OKLaboklab(33.98% 0.0809 -0.0438)
OKLCHoklch(33.98% 0.092 331.6)
XYZxyz(5.4202, 3.5321, 7.4160)
Luminance0.0353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52234D #235228
analogous
#3F2352 #52234D #522335
triadic
#52234D #4D5223 #234D52
tetradic
#52234D #523F23 #235228 #233552
square
#52234D #523F23 #235228 #233552
split-complementary
#52234D #355223 #23523F
monochromatic
#150914 #271125 #52234D #7D3575 #A8489E

Accessibility & contrast

On white

12.31
#52234D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#52234D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52234D
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52234D#FFFFFF#000000##FFFFFF
##52234D1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21314E
Deuteranopia (green-blind)
#2F374C
Tritanopia (blue-blind)
#552734
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52234d;
/* rgb */ color: rgb(82, 35, 77);
/* oklch */ color: oklch(34.0% 0.092 331.6);
Tailwind
colors: {
  custom: {
    50: '#84607f',
    500: '#52234d',
    950: '#000000',
  },
}
SCSS
$custom: #52234d;
$custom-light: #84607f;
$custom-dark: #000000;
JSON
{
  "hex": "#52234d",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 77
  },
  "hsl": {
    "h": 306.383,
    "s": 40.171,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33984,
    "c": 0.092,
    "h": 331.6
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#52234D
secondary
#4B8651
accent
#D06558
background
#F8F5F7
surface
#EFEAEE
border
#CAC6C9
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #52234D

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

Preview Lab → · Contrast checker → · Palette generator →

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