#52137A#52137A

#52137A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.160 H 307.4°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#52137A
RGBrgb(82, 19, 122)
HSLhsl(277, 73%, 28%)
HSVhsv(277, 84%, 48%)
CMYKcmyk(32.8%, 84.4%, 0%, 52.2%)
CIE-LABlab(22.53, 45.72, -44.81)
CIE-LCHlch(22.53, 64.02, 315.58°)
OKLaboklab(35.31% 0.0974 -0.1275)
OKLCHoklch(35.31% 0.16 307.4)
XYZxyz(7.2246, 3.6648, 18.7354)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52137A #3B7A13
analogous
#1E137A #52137A #7A136F
triadic
#52137A #7A5213 #137A52
tetradic
#52137A #7A1E13 #3B7A13 #136F7A
square
#52137A #7A1E13 #3B7A13 #136F7A
split-complementary
#52137A #6F7A13 #137A1E
monochromatic
#12041A #2E0B45 #52137A #761BAF #982ADE

Accessibility & contrast

On white

12.12
#52137A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#52137A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52137A
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52137A#FFFFFF#000000##FFFFFF
##52137A1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52137a;
/* rgb */ color: rgb(82, 19, 122);
/* oklch */ color: oklch(35.3% 0.160 307.4);
Tailwind
colors: {
  custom: {
    50: '#875aa1',
    500: '#52137a',
    950: '#000000',
  },
}
SCSS
$custom: #52137a;
$custom-light: #875aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#52137a",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 122
  },
  "hsl": {
    "h": 276.699,
    "s": 73.05,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35306,
    "c": 0.16045,
    "h": 307.4
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#52137A
secondary
#67B039
accent
#F0387F
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52137A

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

Preview Lab → · Contrast checker → · Palette generator →

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