#52225A#52225A

#52225A is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.6% C 0.107 H 321.7°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#52225A
RGBrgb(82, 34, 90)
HSLhsl(291, 45%, 24%)
HSVhsv(291, 62%, 35%)
CMYKcmyk(8.9%, 62.2%, 0%, 64.7%)
CIE-LABlab(22.57, 31.68, -23.94)
CIE-LCHlch(22.57, 39.71, 322.92°)
OKLaboklab(34.59% 0.0843 -0.0665)
OKLCHoklch(34.59% 0.107 321.7)
XYZxyz(5.8970, 3.6764, 10.0699)
Luminance0.0368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52225A #2A5A22
analogous
#36225A #52225A #5A2246
triadic
#52225A #5A5222 #225A52
tetradic
#52225A #5A3622 #2A5A22 #22465A
square
#52225A #5A3622 #2A5A22 #22465A
split-complementary
#52225A #465A22 #225A36
monochromatic
#140816 #2A112E #52225A #7A3386 #A344B3

Accessibility & contrast

On white

12.10
#52225A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52225A
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52225A#FFFFFF#000000##FFFFFF
##52225A1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17325C
Deuteranopia (green-blind)
#283859
Tritanopia (blue-blind)
#532A3A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52225a;
/* rgb */ color: rgb(82, 34, 90);
/* oklch */ color: oklch(34.6% 0.107 321.7);
Tailwind
colors: {
  custom: {
    50: '#846089',
    500: '#52225a',
    950: '#000000',
  },
}
SCSS
$custom: #52225a;
$custom-light: #846089;
$custom-dark: #000000;
JSON
{
  "hex": "#52225a",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 90
  },
  "hsl": {
    "h": 291.429,
    "s": 45.161,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34593,
    "c": 0.10736,
    "h": 321.7
  },
  "luminance": 0.03676
}

Semantic roles & 50–950 ramp

primary
#52225A
secondary
#548E4A
accent
#D55366
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #52225A

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

Preview Lab → · Contrast checker → · Palette generator →

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