#52137D#52137D

#52137D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.163 H 306.2°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#52137D
RGBrgb(82, 19, 125)
HSLhsl(276, 74%, 28%)
HSVhsv(276, 85%, 49%)
CMYKcmyk(34.4%, 84.8%, 0%, 51%)
CIE-LABlab(22.79, 46.42, -46.29)
CIE-LCHlch(22.79, 65.55, 315.08°)
OKLaboklab(35.57% 0.0965 -0.1319)
OKLCHoklch(35.57% 0.163 306.2)
XYZxyz(7.4134, 3.7403, 19.7295)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52137D #3E7D13
analogous
#1D137D #52137D #7D1373
triadic
#52137D #7D5213 #137D52
tetradic
#52137D #7D1D13 #3E7D13 #13737D
square
#52137D #7D1D13 #3E7D13 #13737D
split-complementary
#52137D #737D13 #137D1D
monochromatic
#11041B #2F0B48 #52137D #751BB2 #962CDF

Accessibility & contrast

On white

12.01
#52137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#52137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52137D
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52137D#FFFFFF#000000##FFFFFF
##52137D1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#4A3049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52137d;
/* rgb */ color: rgb(82, 19, 125);
/* oklch */ color: oklch(35.6% 0.163 306.2);
Tailwind
colors: {
  custom: {
    50: '#885aa3',
    500: '#52137d',
    950: '#000000',
  },
}
SCSS
$custom: #52137d;
$custom-light: #885aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#52137d",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 275.66,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3557,
    "c": 0.1634,
    "h": 306.2
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#52137D
secondary
#6AB339
accent
#F03882
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52137D

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

Preview Lab → · Contrast checker → · Palette generator →

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