#5B1E96#5B1E96

#5B1E96 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.180 H 301.4°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5B1E96
RGBrgb(91, 30, 150)
HSLhsl(271, 67%, 35%)
HSVhsv(271, 80%, 59%)
CMYKcmyk(39.3%, 80%, 0%, 41.2%)
CIE-LABlab(27.72, 49.79, -53.80)
CIE-LCHlch(27.72, 73.30, 312.78°)
OKLaboklab(39.96% 0.0939 -0.1537)
OKLCHoklch(39.96% 0.18 301.4)
XYZxyz(10.2823, 5.3546, 29.3401)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1E96 #59961E
analogous
#1F1E96 #5B1E96 #961E95
triadic
#5B1E96 #965B1E #1E965B
tetradic
#5B1E96 #961F1E #59961E #1E9596
square
#5B1E96 #961F1E #59961E #1E9596
split-complementary
#5B1E96 #95961E #1E961F
monochromatic
#1D0A30 #3C1463 #5B1E96 #7A28C9 #9852DC

Accessibility & contrast

On white

10.14
#5B1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5B1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1E96
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1E96#FFFFFF#000000##FFFFFF
##5B1E961.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#4E3E5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b1e96;
/* rgb */ color: rgb(91, 30, 150);
/* oklch */ color: oklch(40.0% 0.180 301.4);
Tailwind
colors: {
  custom: {
    50: '#8f62b6',
    500: '#5b1e96',
    950: '#000000',
  },
}
SCSS
$custom: #5b1e96;
$custom-light: #8f62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1e96",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 270.5,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3996,
    "c": 0.18011,
    "h": 301.4
  },
  "luminance": 0.05355
}

Semantic roles & 50–950 ramp

primary
#5B1E96
secondary
#87BF50
accent
#EA3E92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5B1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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