#52108D#52108D

#52108D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.181 H 300.8°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#52108D
RGBrgb(82, 16, 141)
HSLhsl(272, 80%, 31%)
HSVhsv(272, 89%, 55%)
CMYKcmyk(41.8%, 88.7%, 0%, 44.7%)
CIE-LABlab(23.96, 51.11, -54.44)
CIE-LCHlch(23.96, 74.68, 313.19°)
OKLaboklab(36.83% 0.0929 -0.1558)
OKLCHoklch(36.83% 0.181 300.8)
XYZxyz(8.4715, 4.0874, 25.5368)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52108D #4B8D10
analogous
#13108D #52108D #8D1089
triadic
#52108D #8D5210 #108D52
tetradic
#52108D #8D1310 #4B8D10 #10898D
square
#52108D #8D1310 #4B8D10 #10898D
split-complementary
#52108D #898D10 #108D13
monochromatic
#12041F #320A56 #52108D #7216C4 #9130E7

Accessibility & contrast

On white

11.55
#52108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#52108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52108D
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52108D#FFFFFF#000000##FFFFFF
##52108D1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#443652
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52108d;
/* rgb */ color: rgb(82, 16, 141);
/* oklch */ color: oklch(36.8% 0.181 300.8);
Tailwind
colors: {
  custom: {
    50: '#8a5aaf',
    500: '#52108d',
    950: '#000000',
  },
}
SCSS
$custom: #52108d;
$custom-light: #8a5aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#52108d",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 271.68,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36829,
    "c": 0.18135,
    "h": 300.8
  },
  "luminance": 0.04088
}

Semantic roles & 50–950 ramp

primary
#52108D
secondary
#79C237
accent
#F6328E
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #52108D

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

Preview Lab → · Contrast checker → · Palette generator →

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