#52225B#52225B

#52225B is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.7% C 0.108 H 321.1°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#52225B
RGBrgb(82, 34, 91)
HSLhsl(291, 46%, 25%)
HSVhsv(291, 63%, 36%)
CMYKcmyk(9.9%, 62.6%, 0%, 64.3%)
CIE-LABlab(22.63, 31.90, -24.51)
CIE-LCHlch(22.63, 40.23, 322.47°)
OKLaboklab(34.66% 0.0844 -0.0681)
OKLCHoklch(34.66% 0.108 321.1)
XYZxyz(5.9398, 3.6935, 10.2955)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52225B #2B5B22
analogous
#36225B #52225B #5B2248
triadic
#52225B #5B5222 #225B52
tetradic
#52225B #5B3622 #2B5B22 #22485B
square
#52225B #5B3622 #2B5B22 #22485B
split-complementary
#52225B #485B22 #225B36
monochromatic
#140816 #2A112E #52225B #7A3388 #A243B4

Accessibility & contrast

On white

12.08
#52225B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#52225B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52225B
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52225B#FFFFFF#000000##FFFFFF
##52225B1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16335D
Deuteranopia (green-blind)
#283859
Tritanopia (blue-blind)
#532B3B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52225b;
/* rgb */ color: rgb(82, 34, 91);
/* oklch */ color: oklch(34.7% 0.108 321.1);
Tailwind
colors: {
  custom: {
    50: '#84608a',
    500: '#52225b',
    950: '#000000',
  },
}
SCSS
$custom: #52225b;
$custom-light: #84608a;
$custom-dark: #000000;
JSON
{
  "hex": "#52225b",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 91
  },
  "hsl": {
    "h": 290.526,
    "s": 45.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34656,
    "c": 0.10844,
    "h": 321.1
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#52225B
secondary
#558F4A
accent
#D55367
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #52225B

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

Preview Lab → · Contrast checker → · Palette generator →

#52225B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva