#5D1D82#5D1D82

#5D1D82 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.161 H 309.6°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5D1D82
RGBrgb(93, 29, 130)
HSLhsl(278, 64%, 31%)
HSVhsv(278, 78%, 51%)
CMYKcmyk(28.5%, 77.7%, 0%, 49%)
CIE-LABlab(26.21, 45.81, -43.82)
CIE-LCHlch(26.21, 63.39, 316.27°)
OKLaboklab(38.44% 0.1027 -0.1243)
OKLCHoklch(38.44% 0.161 309.6)
XYZxyz(8.9820, 4.8178, 21.5715)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D82 #42821D
analogous
#2A1D82 #5D1D82 #821D74
triadic
#5D1D82 #825D1D #1D825D
tetradic
#5D1D82 #822A1D #42821D #1D7482
square
#5D1D82 #822A1D #42821D #1D7482
split-complementary
#5D1D82 #74821D #1D822A
monochromatic
#15071E #391250 #5D1D82 #8128B4 #A044D5

Accessibility & contrast

On white

10.69
#5D1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5D1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D82
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D82#FFFFFF#000000##FFFFFF
##5D1D821.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003F80
Tritanopia (blue-blind)
#58354E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d1d82;
/* rgb */ color: rgb(93, 29, 130);
/* oklch */ color: oklch(38.4% 0.161 309.6);
Tailwind
colors: {
  custom: {
    50: '#8f60a7',
    500: '#5d1d82',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d82;
$custom-light: #8f60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d82",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 278.02,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38443,
    "c": 0.16122,
    "h": 309.6
  },
  "luminance": 0.04818
}

Semantic roles & 50–950 ramp

primary
#5D1D82
secondary
#6EB546
accent
#E7417E
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1D82

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

Preview Lab → · Contrast checker → · Palette generator →

#5D1D82 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva