#52107E#52107E

#52107E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.167 H 306.1°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#52107E
RGBrgb(82, 16, 126)
HSLhsl(276, 77%, 28%)
HSVhsv(276, 87%, 49%)
CMYKcmyk(34.9%, 87.3%, 0%, 50.6%)
CIE-LABlab(22.55, 47.62, -47.32)
CIE-LCHlch(22.55, 67.13, 315.18°)
OKLaboklab(35.43% 0.0983 -0.1349)
OKLCHoklch(35.43% 0.167 306.1)
XYZxyz(7.4300, 3.6708, 20.0517)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52107E #3C7E10
analogous
#1B107E #52107E #7E1073
triadic
#52107E #7E5210 #107E52
tetradic
#52107E #7E1B10 #3C7E10 #10737E
square
#52107E #7E1B10 #3C7E10 #10737E
split-complementary
#52107E #737E10 #107E1B
monochromatic
#12031B #2F0948 #52107E #7517B4 #9725E3

Accessibility & contrast

On white

12.11
#52107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#52107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52107E
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52107E#FFFFFF#000000##FFFFFF
##52107E1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52107e;
/* rgb */ color: rgb(82, 16, 126);
/* oklch */ color: oklch(35.4% 0.167 306.1);
Tailwind
colors: {
  custom: {
    50: '#8859a4',
    500: '#52107e',
    950: '#000000',
  },
}
SCSS
$custom: #52107e;
$custom-light: #8859a4;
$custom-dark: #000000;
JSON
{
  "hex": "#52107e",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 276,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3543,
    "c": 0.1669,
    "h": 306.1
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#52107E
secondary
#68B436
accent
#F43481
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52107E

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

Preview Lab → · Contrast checker → · Palette generator →

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