#52107D#52107D

#52107D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.166 H 306.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#52107D
RGBrgb(82, 16, 125)
HSLhsl(276, 77%, 28%)
HSVhsv(276, 87%, 49%)
CMYKcmyk(34.4%, 87.2%, 0%, 51%)
CIE-LABlab(22.46, 47.39, -46.83)
CIE-LCHlch(22.46, 66.62, 315.34°)
OKLaboklab(35.34% 0.0987 -0.1334)
OKLCHoklch(35.34% 0.166 306.5)
XYZxyz(7.3658, 3.6452, 19.7136)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52107D #3B7D10
analogous
#1B107D #52107D #7D1072
triadic
#52107D #7D5210 #107D52
tetradic
#52107D #7D1B10 #3B7D10 #10727D
square
#52107D #7D1B10 #3B7D10 #10727D
split-complementary
#52107D #727D10 #107D1B
monochromatic
#12031B #2E0947 #52107D #7617B3 #9824E3

Accessibility & contrast

On white

12.15
#52107D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52107D
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52107D#FFFFFF#000000##FFFFFF
##52107D1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.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: #52107d;
/* rgb */ color: rgb(82, 16, 125);
/* oklch */ color: oklch(35.3% 0.166 306.5);
Tailwind
colors: {
  custom: {
    50: '#8859a3',
    500: '#52107d',
    950: '#000000',
  },
}
SCSS
$custom: #52107d;
$custom-light: #8859a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52107d",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 125
  },
  "hsl": {
    "h": 276.33,
    "s": 77.305,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3534,
    "c": 0.16594,
    "h": 306.5
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#52107D
secondary
#67B335
accent
#F43480
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52107D

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

Preview Lab → · Contrast checker → · Palette generator →

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