#52117E#52117E

#52117E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.166 H 306.0°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#52117E
RGBrgb(82, 17, 126)
HSLhsl(276, 76%, 28%)
HSVhsv(276, 87%, 49%)
CMYKcmyk(34.9%, 86.5%, 0%, 50.6%)
CIE-LABlab(22.66, 47.31, -47.15)
CIE-LCHlch(22.66, 66.79, 315.10°)
OKLaboklab(35.5% 0.0976 -0.1344)
OKLCHoklch(35.5% 0.166 306)
XYZxyz(7.4452, 3.7012, 20.0568)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52117E #3D7E11
analogous
#1B117E #52117E #7E1173
triadic
#52117E #7E5211 #117E52
tetradic
#52117E #7E1B11 #3D7E11 #11737E
square
#52117E #7E1B11 #3D7E11 #11737E
split-complementary
#52117E #737E11 #117E1B
monochromatic
#12041B #2F0A48 #52117E #7518B4 #9727E2

Accessibility & contrast

On white

12.07
#52117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#52117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52117E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52117E#FFFFFF#000000##FFFFFF
##52117E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#4A304A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52117e;
/* rgb */ color: rgb(82, 17, 126);
/* oklch */ color: oklch(35.5% 0.166 306.0);
Tailwind
colors: {
  custom: {
    50: '#885aa4',
    500: '#52117e',
    950: '#000000',
  },
}
SCSS
$custom: #52117e;
$custom-light: #885aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#52117e",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 275.78,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35503,
    "c": 0.16609,
    "h": 306
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

primary
#52117E
secondary
#69B437
accent
#F33582
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52117E

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

Preview Lab → · Contrast checker → · Palette generator →

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