#52156A#52156A

#52156A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.143 H 314.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#52156A
RGBrgb(82, 21, 106)
HSLhsl(283, 67%, 25%)
HSVhsv(283, 80%, 42%)
CMYKcmyk(22.6%, 80.2%, 0%, 58.4%)
CIE-LABlab(21.47, 41.35, -36.22)
CIE-LCHlch(21.47, 54.97, 318.79°)
OKLaboklab(34.15% 0.0995 -0.1023)
OKLCHoklch(34.15% 0.143 314.2)
XYZxyz(6.3489, 3.3710, 13.9491)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52156A #2D6A15
analogous
#28156A #52156A #6A1557
triadic
#52156A #6A5215 #156A52
tetradic
#52156A #6A2815 #2D6A15 #15576A
square
#52156A #6A2815 #2D6A15 #15576A
split-complementary
#52156A #576A15 #156A28
monochromatic
#14051A #2A0B37 #52156A #7A1F9D #A129D0

Accessibility & contrast

On white

12.54
#52156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#52156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52156A
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52156A#FFFFFF#000000##FFFFFF
##52156A1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#0F3568
Tritanopia (blue-blind)
#50283F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52156a;
/* rgb */ color: rgb(82, 21, 106);
/* oklch */ color: oklch(34.2% 0.143 314.2);
Tailwind
colors: {
  custom: {
    50: '#865a95',
    500: '#52156a',
    950: '#000000',
  },
}
SCSS
$custom: #52156a;
$custom-light: #865a95;
$custom-dark: #000000;
JSON
{
  "hex": "#52156a",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 283.059,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34153,
    "c": 0.14266,
    "h": 314.2
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#52156A
secondary
#57A13A
accent
#EA3E6E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52156A

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

Preview Lab → · Contrast checker → · Palette generator →

#52156A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva