#52137B#52137B

#52137B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.161 H 307.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#52137B
RGBrgb(82, 19, 123)
HSLhsl(276, 73%, 28%)
HSVhsv(276, 85%, 48%)
CMYKcmyk(33.3%, 84.6%, 0%, 51.8%)
CIE-LABlab(22.62, 45.95, -45.30)
CIE-LCHlch(22.62, 64.53, 315.41°)
OKLaboklab(35.39% 0.0971 -0.129)
OKLCHoklch(35.39% 0.161 307)
XYZxyz(7.2869, 3.6897, 19.0634)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52137B #3C7B13
analogous
#1E137B #52137B #7B1370
triadic
#52137B #7B5213 #137B52
tetradic
#52137B #7B1E13 #3C7B13 #13707B
square
#52137B #7B1E13 #3C7B13 #13707B
split-complementary
#52137B #707B13 #137B1E
monochromatic
#12041B #2F0B46 #52137B #751BB0 #972ADE

Accessibility & contrast

On white

12.08
#52137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#52137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52137B
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52137B#FFFFFF#000000##FFFFFF
##52137B1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#4B2F48
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52137b;
/* rgb */ color: rgb(82, 19, 123);
/* oklch */ color: oklch(35.4% 0.161 307.0);
Tailwind
colors: {
  custom: {
    50: '#875aa2',
    500: '#52137b',
    950: '#000000',
  },
}
SCSS
$custom: #52137b;
$custom-light: #875aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#52137b",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 276.346,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35394,
    "c": 0.16144,
    "h": 307
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#52137B
secondary
#68B139
accent
#F03880
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52137B

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

Preview Lab → · Contrast checker → · Palette generator →

#52137B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva