#5D1E82#5D1E82

#5D1E82 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.160 H 309.5°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5D1E82
RGBrgb(93, 30, 130)
HSLhsl(278, 63%, 31%)
HSVhsv(278, 77%, 51%)
CMYKcmyk(28.5%, 76.9%, 0%, 49%)
CIE-LABlab(26.35, 45.39, -43.58)
CIE-LCHlch(26.35, 62.93, 316.17°)
OKLaboklab(38.55% 0.1017 -0.1236)
OKLCHoklch(38.55% 0.16 309.5)
XYZxyz(9.0069, 4.8676, 21.5798)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E82 #43821E
analogous
#2B1E82 #5D1E82 #821E75
triadic
#5D1E82 #825D1E #1E825D
tetradic
#5D1E82 #822B1E #43821E #1E7582
square
#5D1E82 #822B1E #43821E #1E7582
split-complementary
#5D1E82 #75821E #1E822B
monochromatic
#16071F #391350 #5D1E82 #8129B4 #A046D4

Accessibility & contrast

On white

10.64
#5D1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5D1E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E82
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E82#FFFFFF#000000##FFFFFF
##5D1E821.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#023F80
Tritanopia (blue-blind)
#58364F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d1e82;
/* rgb */ color: rgb(93, 30, 130);
/* oklch */ color: oklch(38.5% 0.160 309.5);
Tailwind
colors: {
  custom: {
    50: '#8f61a7',
    500: '#5d1e82',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e82;
$custom-light: #8f61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e82",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 277.8,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38545,
    "c": 0.16008,
    "h": 309.5
  },
  "luminance": 0.04867
}

Semantic roles & 50–950 ramp

primary
#5D1E82
secondary
#70B547
accent
#E6427F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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