#52137C#52137C

#52137C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.162 H 306.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#52137C
RGBrgb(82, 19, 124)
HSLhsl(276, 73%, 28%)
HSVhsv(276, 85%, 49%)
CMYKcmyk(33.9%, 84.7%, 0%, 51.4%)
CIE-LABlab(22.71, 46.18, -45.80)
CIE-LCHlch(22.71, 65.04, 315.24°)
OKLaboklab(35.48% 0.0968 -0.1304)
OKLCHoklch(35.48% 0.162 306.6)
XYZxyz(7.3498, 3.7149, 19.3947)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52137C #3D7C13
analogous
#1D137C #52137C #7C1371
triadic
#52137C #7C5213 #137C52
tetradic
#52137C #7C1D13 #3D7C13 #13717C
square
#52137C #7C1D13 #3D7C13 #13717C
split-complementary
#52137C #717C13 #137C1D
monochromatic
#12041B #2F0B47 #52137C #751BB1 #972BDF

Accessibility & contrast

On white

12.05
#52137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52137C
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52137C#FFFFFF#000000##FFFFFF
##52137C1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#4A3049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52137c;
/* rgb */ color: rgb(82, 19, 124);
/* oklch */ color: oklch(35.5% 0.162 306.6);
Tailwind
colors: {
  custom: {
    50: '#885aa3',
    500: '#52137c',
    950: '#000000',
  },
}
SCSS
$custom: #52137c;
$custom-light: #885aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#52137c",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 276,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35482,
    "c": 0.16242,
    "h": 306.6
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#52137C
secondary
#69B239
accent
#F03881
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52137C

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

Preview Lab → · Contrast checker → · Palette generator →

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