#52156F#52156F

#52156F is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.148 H 311.9°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#52156F
RGBrgb(82, 21, 111)
HSLhsl(281, 68%, 26%)
HSVhsv(281, 81%, 44%)
CMYKcmyk(26.1%, 81.1%, 0%, 56.5%)
CIE-LABlab(21.86, 42.47, -38.83)
CIE-LCHlch(21.86, 57.55, 317.57°)
OKLaboklab(34.55% 0.0985 -0.1099)
OKLCHoklch(34.55% 0.148 311.9)
XYZxyz(6.6165, 3.4780, 15.3586)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52156F #326F15
analogous
#25156F #52156F #6F155F
triadic
#52156F #6F5215 #156F52
tetradic
#52156F #6F2515 #326F15 #155F6F
square
#52156F #6F2515 #326F15 #155F6F
split-complementary
#52156F #5F6F15 #156F25
monochromatic
#13051A #2C0B3C #52156F #781FA2 #9E28D6

Accessibility & contrast

On white

12.38
#52156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#52156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52156F
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52156F#FFFFFF#000000##FFFFFF
##52156F1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#04356D
Tritanopia (blue-blind)
#4E2B42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52156f;
/* rgb */ color: rgb(82, 21, 111);
/* oklch */ color: oklch(34.6% 0.148 311.9);
Tailwind
colors: {
  custom: {
    50: '#865a99',
    500: '#52156f',
    950: '#000000',
  },
}
SCSS
$custom: #52156f;
$custom-light: #865a99;
$custom-dark: #000000;
JSON
{
  "hex": "#52156f",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 280.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34553,
    "c": 0.14761,
    "h": 311.9
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#52156F
secondary
#5DA53A
accent
#EB3D75
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52156F

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

Preview Lab → · Contrast checker → · Palette generator →

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