#52117C#52117C

#52117C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.164 H 306.8°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#52117C
RGBrgb(82, 17, 124)
HSLhsl(276, 76%, 28%)
HSVhsv(276, 86%, 49%)
CMYKcmyk(33.9%, 86.3%, 0%, 51.4%)
CIE-LABlab(22.48, 46.85, -46.17)
CIE-LCHlch(22.48, 65.77, 315.42°)
OKLaboklab(35.32% 0.0983 -0.1315)
OKLCHoklch(35.32% 0.164 306.8)
XYZxyz(7.3174, 3.6501, 19.3839)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52117C #3B7C11
analogous
#1D117C #52117C #7C1170
triadic
#52117C #7C5211 #117C52
tetradic
#52117C #7C1D11 #3B7C11 #11707C
square
#52117C #7C1D11 #3B7C11 #11707C
split-complementary
#52117C #707C11 #117C1D
monochromatic
#12041B #2E0A46 #52117C #7618B2 #9826E1

Accessibility & contrast

On white

12.14
#52117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#52117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52117C
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52117C#FFFFFF#000000##FFFFFF
##52117C1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52117c;
/* rgb */ color: rgb(82, 17, 124);
/* oklch */ color: oklch(35.3% 0.164 306.8);
Tailwind
colors: {
  custom: {
    50: '#885aa3',
    500: '#52117c',
    950: '#000000',
  },
}
SCSS
$custom: #52117c;
$custom-light: #885aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#52117c",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 276.449,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35324,
    "c": 0.16416,
    "h": 306.8
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#52117C
secondary
#67B237
accent
#F23580
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52117C

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

Preview Lab → · Contrast checker → · Palette generator →

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