#52155B#52155B

#52155B is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.128 H 322.2°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#52155B
RGBrgb(82, 21, 91)
HSLhsl(292, 63%, 22%)
HSVhsv(292, 77%, 36%)
CMYKcmyk(9.9%, 76.9%, 0%, 64.3%)
CIE-LABlab(20.38, 38.15, -28.08)
CIE-LCHlch(20.38, 47.37, 323.64°)
OKLaboklab(33.03% 0.1012 -0.0785)
OKLCHoklch(33.03% 0.128 322.2)
XYZxyz(5.6360, 3.0858, 10.1943)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52155B #1E5B15
analogous
#2F155B #52155B #5B1541
triadic
#52155B #5B5215 #155B52
tetradic
#52155B #5B2F15 #1E5B15 #15415B
square
#52155B #5B2F15 #1E5B15 #15415B
split-complementary
#52155B #415B15 #155B2F
monochromatic
#160619 #250A29 #52155B #7F208D #AC2CBE

Accessibility & contrast

On white

12.99
#52155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52155B
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52155B#FFFFFF#000000##FFFFFF
##52155B1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#1F3359
Tritanopia (blue-blind)
#532236
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52155b;
/* rgb */ color: rgb(82, 21, 91);
/* oklch */ color: oklch(33.0% 0.128 322.2);
Tailwind
colors: {
  custom: {
    50: '#85598a',
    500: '#52155b',
    950: '#000000',
  },
}
SCSS
$custom: #52155b;
$custom-light: #85598a;
$custom-dark: #000000;
JSON
{
  "hex": "#52155b",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 292.286,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33034,
    "c": 0.12808,
    "h": 322.2
  },
  "luminance": 0.03086
}

Semantic roles & 50–950 ramp

primary
#52155B
secondary
#459239
accent
#E64257
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #52155B

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

Preview Lab → · Contrast checker → · Palette generator →

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