#52156C#52156C

#52156C is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.145 H 313.2°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#52156C
RGBrgb(82, 21, 108)
HSLhsl(282, 67%, 25%)
HSVhsv(282, 81%, 42%)
CMYKcmyk(24.1%, 80.6%, 0%, 57.6%)
CIE-LABlab(21.63, 41.80, -37.27)
CIE-LCHlch(21.63, 56.00, 318.28°)
OKLaboklab(34.31% 0.0991 -0.1054)
OKLCHoklch(34.31% 0.145 313.2)
XYZxyz(6.4541, 3.4131, 14.5033)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52156C #2F6C15
analogous
#26156C #52156C #6C155A
triadic
#52156C #6C5215 #156C52
tetradic
#52156C #6C2615 #2F6C15 #155A6C
square
#52156C #6C2615 #2F6C15 #155A6C
split-complementary
#52156C #5A6C15 #156C26
monochromatic
#13051A #2B0B39 #52156C #791F9F #A029D2

Accessibility & contrast

On white

12.48
#52156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#52156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52156C
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52156C#FFFFFF#000000##FFFFFF
##52156C1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#0B356A
Tritanopia (blue-blind)
#4F2940
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52156c;
/* rgb */ color: rgb(82, 21, 108);
/* oklch */ color: oklch(34.3% 0.145 313.2);
Tailwind
colors: {
  custom: {
    50: '#865a97',
    500: '#52156c',
    950: '#000000',
  },
}
SCSS
$custom: #52156c;
$custom-light: #865a97;
$custom-dark: #000000;
JSON
{
  "hex": "#52156c",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 282.069,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34311,
    "c": 0.14464,
    "h": 313.2
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#52156C
secondary
#59A33A
accent
#EA3D71
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #52156C

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

Preview Lab → · Contrast checker → · Palette generator →

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