#52215E#52215E

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

Color values

HEX#52215E
RGBrgb(82, 33, 94)
HSLhsl(288, 48%, 25%)
HSVhsv(288, 65%, 37%)
CMYKcmyk(12.8%, 64.9%, 0%, 63.1%)
CIE-LABlab(22.62, 33.11, -26.51)
CIE-LCHlch(22.62, 42.41, 321.31°)
OKLaboklab(34.71% 0.086 -0.074)
OKLCHoklch(34.71% 0.113 319.3)
XYZxyz(6.0437, 3.6900, 10.9814)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52215E #2D5E21
analogous
#34215E #52215E #5E214B
triadic
#52215E #5E5221 #215E52
tetradic
#52215E #5E3421 #2D5E21 #214B5E
square
#52215E #5E3421 #2D5E21 #214B5E
split-complementary
#52215E #4B5E21 #215E34
monochromatic
#140817 #2A1131 #52215E #7A318B #A141B9

Accessibility & contrast

On white

12.08
#52215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#52215E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52215E
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52215E#FFFFFF#000000##FFFFFF
##52215E1.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)
#123360
Deuteranopia (green-blind)
#25385C
Tritanopia (blue-blind)
#522B3C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52215e;
/* rgb */ color: rgb(82, 33, 94);
/* oklch */ color: oklch(34.7% 0.113 319.3);
Tailwind
colors: {
  custom: {
    50: '#85608c',
    500: '#52215e',
    950: '#000000',
  },
}
SCSS
$custom: #52215e;
$custom-light: #85608c;
$custom-dark: #000000;
JSON
{
  "hex": "#52215e",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 288.197,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34707,
    "c": 0.1134,
    "h": 319.3
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#52215E
secondary
#579249
accent
#D8506B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #52215E

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

Preview Lab → · Contrast checker → · Palette generator →

#52215E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva