#5B1B97#5B1B97

#5B1B97 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.8% C 0.184 H 301.5°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5B1B97
RGBrgb(91, 27, 151)
HSLhsl(271, 70%, 35%)
HSVhsv(271, 82%, 59%)
CMYKcmyk(39.7%, 82.1%, 0%, 40.8%)
CIE-LABlab(27.41, 51.18, -54.92)
CIE-LCHlch(27.41, 75.07, 312.98°)
OKLaboklab(39.77% 0.096 -0.1569)
OKLCHoklch(39.77% 0.184 301.5)
XYZxyz(10.2909, 5.2423, 29.7419)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B97 #57971B
analogous
#1D1B97 #5B1B97 #971B95
triadic
#5B1B97 #975B1B #1B975B
tetradic
#5B1B97 #971D1B #57971B #1B9597
square
#5B1B97 #971D1B #57971B #1B9597
split-complementary
#5B1B97 #95971B #1B971D
monochromatic
#1C082F #3C1263 #5B1B97 #7A24CB #994DDF

Accessibility & contrast

On white

10.25
#5B1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5B1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1B97
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B97#FFFFFF#000000##FFFFFF
##5B1B971.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#4D3E5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b1b97;
/* rgb */ color: rgb(91, 27, 151);
/* oklch */ color: oklch(39.8% 0.184 301.5);
Tailwind
colors: {
  custom: {
    50: '#9060b7',
    500: '#5b1b97',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b97;
$custom-light: #9060b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b97",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 270.968,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39773,
    "c": 0.18396,
    "h": 301.5
  },
  "luminance": 0.05242
}

Semantic roles & 50–950 ramp

primary
#5B1B97
secondary
#85C14C
accent
#EC3B91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5B1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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