#52136E#52136E

#52136E is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.149 H 312.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#52136E
RGBrgb(82, 19, 110)
HSLhsl(282, 71%, 25%)
HSVhsv(282, 83%, 43%)
CMYKcmyk(25.5%, 82.7%, 0%, 56.9%)
CIE-LABlab(21.53, 43.00, -38.73)
CIE-LCHlch(21.53, 57.87, 317.99°)
OKLaboklab(34.29% 0.1005 -0.1096)
OKLCHoklch(34.29% 0.149 312.5)
XYZxyz(6.5265, 3.3856, 15.0585)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52136E #2F6E13
analogous
#24136E #52136E #6E135D
triadic
#52136E #6E5213 #136E52
tetradic
#52136E #6E2413 #2F6E13 #135D6E
square
#52136E #6E2413 #2F6E13 #135D6E
split-complementary
#52136E #5D6E13 #136E24
monochromatic
#13051A #2B0A3A #52136E #791CA2 #A025D6

Accessibility & contrast

On white

12.52
#52136E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#52136E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52136E
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52136E#FFFFFF#000000##FFFFFF
##52136E1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#03356C
Tritanopia (blue-blind)
#4F2941
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52136e;
/* rgb */ color: rgb(82, 19, 110);
/* oklch */ color: oklch(34.3% 0.149 312.5);
Tailwind
colors: {
  custom: {
    50: '#865998',
    500: '#52136e',
    950: '#000000',
  },
}
SCSS
$custom: #52136e;
$custom-light: #865998;
$custom-dark: #000000;
JSON
{
  "hex": "#52136e",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 110
  },
  "hsl": {
    "h": 281.538,
    "s": 70.543,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3429,
    "c": 0.14874,
    "h": 312.5
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#52136E
secondary
#59A538
accent
#ED3A72
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52136E

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

Preview Lab → · Contrast checker → · Palette generator →

#52136E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva