#52155D#52155D

#52155D is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.130 H 321.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#52155D
RGBrgb(82, 21, 93)
HSLhsl(291, 63%, 22%)
HSVhsv(291, 77%, 36%)
CMYKcmyk(11.8%, 77.4%, 0%, 63.5%)
CIE-LABlab(20.52, 38.56, -29.20)
CIE-LCHlch(20.52, 48.36, 322.87°)
OKLaboklab(33.17% 0.1011 -0.0817)
OKLCHoklch(33.17% 0.13 321.1)
XYZxyz(5.7234, 3.1208, 10.6547)
Luminance0.0312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52155D #205D15
analogous
#2E155D #52155D #5D1544
triadic
#52155D #5D5215 #155D52
tetradic
#52155D #5D2E15 #205D15 #15445D
square
#52155D #5D2E15 #205D15 #15445D
split-complementary
#52155D #445D15 #155D2E
monochromatic
#160619 #260A2B #52155D #7E208F #AA2CC1

Accessibility & contrast

On white

12.93
#52155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#52155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52155D
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52155D#FFFFFF#000000##FFFFFF
##52155D1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#1D345B
Tritanopia (blue-blind)
#532337
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52155d;
/* rgb */ color: rgb(82, 21, 93);
/* oklch */ color: oklch(33.2% 0.130 321.1);
Tailwind
colors: {
  custom: {
    50: '#85598b',
    500: '#52155d',
    950: '#000000',
  },
}
SCSS
$custom: #52155d;
$custom-light: #85598b;
$custom-dark: #000000;
JSON
{
  "hex": "#52155d",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 290.833,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33175,
    "c": 0.12999,
    "h": 321.1
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#52155D
secondary
#479439
accent
#E6425B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52155D

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

Preview Lab → · Contrast checker → · Palette generator →

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