#52117F#52117F

#52117F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.167 H 305.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#52117F
RGBrgb(82, 17, 127)
HSLhsl(275, 76%, 28%)
HSVhsv(275, 87%, 50%)
CMYKcmyk(35.4%, 86.6%, 0%, 50.2%)
CIE-LABlab(22.75, 47.54, -47.63)
CIE-LCHlch(22.75, 67.30, 314.94°)
OKLaboklab(35.59% 0.0973 -0.1358)
OKLCHoklch(35.59% 0.167 305.6)
XYZxyz(7.5100, 3.7271, 20.3983)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52117F #3E7F11
analogous
#1B117F #52117F #7F1175
triadic
#52117F #7F5211 #117F52
tetradic
#52117F #7F1B11 #3E7F11 #11757F
square
#52117F #7F1B11 #3E7F11 #11757F
split-complementary
#52117F #757F11 #117F1B
monochromatic
#11041B #2F0A49 #52117F #7518B5 #9628E2

Accessibility & contrast

On white

12.03
#52117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#52117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52117F
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52117F#FFFFFF#000000##FFFFFF
##52117F1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52117f;
/* rgb */ color: rgb(82, 17, 127);
/* oklch */ color: oklch(35.6% 0.167 305.6);
Tailwind
colors: {
  custom: {
    50: '#885aa5',
    500: '#52117f',
    950: '#000000',
  },
}
SCSS
$custom: #52117f;
$custom-light: #885aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#52117f",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 275.455,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35594,
    "c": 0.16706,
    "h": 305.6
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#52117F
secondary
#6AB537
accent
#F33583
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52117F

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

Preview Lab → · Contrast checker → · Palette generator →

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