#52155C#52155C

#52155C is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.129 H 321.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#52155C
RGBrgb(82, 21, 92)
HSLhsl(292, 63%, 22%)
HSVhsv(292, 77%, 36%)
CMYKcmyk(10.9%, 77.2%, 0%, 63.9%)
CIE-LABlab(20.45, 38.35, -28.64)
CIE-LCHlch(20.45, 47.87, 323.25°)
OKLaboklab(33.1% 0.1012 -0.0801)
OKLCHoklch(33.1% 0.129 321.6)
XYZxyz(5.6794, 3.1032, 10.4230)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52155C #1F5C15
analogous
#2E155C #52155C #5C1543
triadic
#52155C #5C5215 #155C52
tetradic
#52155C #5C2E15 #1F5C15 #15435C
square
#52155C #5C2E15 #1F5C15 #15435C
split-complementary
#52155C #435C15 #155C2E
monochromatic
#160619 #260A2A #52155C #7E208E #AB2CC0

Accessibility & contrast

On white

12.96
#52155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52155C
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52155C#FFFFFF#000000##FFFFFF
##52155C1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#1E345A
Tritanopia (blue-blind)
#532237
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52155c;
/* rgb */ color: rgb(82, 21, 92);
/* oklch */ color: oklch(33.1% 0.129 321.6);
Tailwind
colors: {
  custom: {
    50: '#85598a',
    500: '#52155c',
    950: '#000000',
  },
}
SCSS
$custom: #52155c;
$custom-light: #85598a;
$custom-dark: #000000;
JSON
{
  "hex": "#52155c",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 291.549,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33104,
    "c": 0.12904,
    "h": 321.6
  },
  "luminance": 0.03103
}

Semantic roles & 50–950 ramp

primary
#52155C
secondary
#469339
accent
#E64259
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52155C

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

Preview Lab → · Contrast checker → · Palette generator →

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