#5B1F96#5B1F96

#5B1F96 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.179 H 301.3°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#5B1F96
RGBrgb(91, 31, 150)
HSLhsl(270, 66%, 35%)
HSVhsv(270, 79%, 59%)
CMYKcmyk(39.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(27.86, 49.38, -53.57)
CIE-LCHlch(27.86, 72.86, 312.67°)
OKLaboklab(40.06% 0.0931 -0.153)
OKLCHoklch(40.06% 0.179 301.3)
XYZxyz(10.3080, 5.4061, 29.3487)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1F96 #5A961F
analogous
#1F1F96 #5B1F96 #961F95
triadic
#5B1F96 #965B1F #1F965B
tetradic
#5B1F96 #961F1F #5A961F #1F9596
square
#5B1F96 #961F1F #5A961F #1F9596
split-complementary
#5B1F96 #95961F #1F961F
monochromatic
#1D0A31 #3C1563 #5B1F96 #7A29C9 #9854DC

Accessibility & contrast

On white

10.09
#5B1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5B1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1F96
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1F96#FFFFFF#000000##FFFFFF
##5B1F961.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1f96;
/* rgb */ color: rgb(91, 31, 150);
/* oklch */ color: oklch(40.1% 0.179 301.3);
Tailwind
colors: {
  custom: {
    50: '#8f62b6',
    500: '#5b1f96',
    950: '#000000',
  },
}
SCSS
$custom: #5b1f96;
$custom-light: #8f62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1f96",
  "rgb": {
    "r": 91,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 270.252,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40058,
    "c": 0.17911,
    "h": 301.3
  },
  "luminance": 0.05406
}

Semantic roles & 50–950 ramp

primary
#5B1F96
secondary
#88BF52
accent
#E93F93
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5B1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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