#5D1E97#5D1E97

#5D1E97 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.181 H 302.2°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#5D1E97
RGBrgb(93, 30, 151)
HSLhsl(271, 67%, 35%)
HSVhsv(271, 80%, 59%)
CMYKcmyk(38.4%, 80.1%, 0%, 40.8%)
CIE-LABlab(28.09, 50.36, -53.80)
CIE-LCHlch(28.09, 73.69, 313.11°)
OKLaboklab(40.3% 0.0967 -0.1536)
OKLCHoklch(40.3% 0.182 302.2)
XYZxyz(10.5630, 5.4900, 29.7753)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E97 #58971E
analogous
#211E97 #5D1E97 #971E94
triadic
#5D1E97 #975D1E #1E975D
tetradic
#5D1E97 #97211E #58971E #1E9497
square
#5D1E97 #97211E #58971E #1E9497
split-complementary
#5D1E97 #94971E #1E9721
monochromatic
#1E0A31 #3E1464 #5D1E97 #7C28CA #9B53DD

Accessibility & contrast

On white

10.01
#5D1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5D1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E97
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E97#FFFFFF#000000##FFFFFF
##5D1E971.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#503F5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d1e97;
/* rgb */ color: rgb(93, 30, 151);
/* oklch */ color: oklch(40.3% 0.181 302.2);
Tailwind
colors: {
  custom: {
    50: '#9162b7',
    500: '#5d1e97',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e97;
$custom-light: #9162b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e97",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 271.24,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40302,
    "c": 0.1815,
    "h": 302.2
  },
  "luminance": 0.0549
}

Semantic roles & 50–950 ramp

primary
#5D1E97
secondary
#86C051
accent
#EA3E90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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