#52117D#52117D

#52117D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.165 H 306.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#52117D
RGBrgb(82, 17, 125)
HSLhsl(276, 76%, 28%)
HSVhsv(276, 86%, 49%)
CMYKcmyk(34.4%, 86.4%, 0%, 51%)
CIE-LABlab(22.57, 47.08, -46.66)
CIE-LCHlch(22.57, 66.28, 315.26°)
OKLaboklab(35.41% 0.098 -0.1329)
OKLCHoklch(35.41% 0.165 306.4)
XYZxyz(7.3810, 3.6755, 19.7187)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52117D #3C7D11
analogous
#1C117D #52117D #7D1172
triadic
#52117D #7D5211 #117D52
tetradic
#52117D #7D1C11 #3C7D11 #11727D
square
#52117D #7D1C11 #3C7D11 #11727D
split-complementary
#52117D #727D11 #117D1C
monochromatic
#12041B #2F0A47 #52117D #7518B3 #9727E2

Accessibility & contrast

On white

12.10
#52117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52117D
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52117D#FFFFFF#000000##FFFFFF
##52117D1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#4A2F49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52117d;
/* rgb */ color: rgb(82, 17, 125);
/* oklch */ color: oklch(35.4% 0.165 306.4);
Tailwind
colors: {
  custom: {
    50: '#885aa3',
    500: '#52117d',
    950: '#000000',
  },
}
SCSS
$custom: #52117d;
$custom-light: #885aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#52117d",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 276.111,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35414,
    "c": 0.16513,
    "h": 306.4
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#52117D
secondary
#68B337
accent
#F33581
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52117D

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

Preview Lab → · Contrast checker → · Palette generator →

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