#52215F#52215F

#52215F is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.8% C 0.114 H 318.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#52215F
RGBrgb(82, 33, 95)
HSLhsl(287, 48%, 25%)
HSVhsv(287, 65%, 37%)
CMYKcmyk(13.7%, 65.3%, 0%, 62.7%)
CIE-LABlab(22.68, 33.33, -27.07)
CIE-LCHlch(22.68, 42.94, 320.92°)
OKLaboklab(34.77% 0.086 -0.0756)
OKLCHoklch(34.77% 0.114 318.7)
XYZxyz(6.0888, 3.7080, 11.2192)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52215F #2E5F21
analogous
#33215F #52215F #5F214D
triadic
#52215F #5F5221 #215F52
tetradic
#52215F #5F3321 #2E5F21 #214D5F
square
#52215F #5F3321 #2E5F21 #214D5F
split-complementary
#52215F #4D5F21 #215F33
monochromatic
#140817 #2B1132 #52215F #79318C #A041BA

Accessibility & contrast

On white

12.06
#52215F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52215F
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52215F#FFFFFF#000000##FFFFFF
##52215F1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113361
Deuteranopia (green-blind)
#24385D
Tritanopia (blue-blind)
#522B3C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52215f;
/* rgb */ color: rgb(82, 33, 95);
/* oklch */ color: oklch(34.8% 0.114 318.7);
Tailwind
colors: {
  custom: {
    50: '#85608d',
    500: '#52215f',
    950: '#000000',
  },
}
SCSS
$custom: #52215f;
$custom-light: #85608d;
$custom-dark: #000000;
JSON
{
  "hex": "#52215f",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 95
  },
  "hsl": {
    "h": 287.419,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34773,
    "c": 0.11449,
    "h": 318.7
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#52215F
secondary
#589349
accent
#D8506C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #52215F

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

Preview Lab → · Contrast checker → · Palette generator →

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