#5B1B9D#5B1B9D

#5B1B9D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.190 H 299.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5B1B9D
RGBrgb(91, 27, 157)
HSLhsl(270, 71%, 36%)
HSVhsv(270, 83%, 62%)
CMYKcmyk(42%, 82.8%, 0%, 38.4%)
CIE-LABlab(27.96, 52.63, -57.70)
CIE-LCHlch(27.96, 78.09, 312.37°)
OKLaboklab(40.32% 0.0941 -0.1651)
OKLCHoklch(40.32% 0.19 299.7)
XYZxyz(10.7906, 5.4422, 32.3737)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B9D #5D9D1B
analogous
#1B1C9D #5B1B9D #9C1B9D
triadic
#5B1B9D #9D5B1B #1B9D5B
tetradic
#5B1B9D #9D1B1C #5D9D1B #1B9D9C
square
#5B1B9D #9D1B1C #5D9D1B #1B9D9C
split-complementary
#5B1B9D #9D9C1B #1C9D1B
monochromatic
#1E0935 #3D1269 #5B1B9D #7924D1 #9851E1

Accessibility & contrast

On white

10.06
#5B1B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5B1B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1B9D
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B9D#FFFFFF#000000##FFFFFF
##5B1B9D1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#4B405D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b1b9d;
/* rgb */ color: rgb(91, 27, 157);
/* oklch */ color: oklch(40.3% 0.190 299.7);
Tailwind
colors: {
  custom: {
    50: '#9061bb',
    500: '#5b1b9d',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b9d;
$custom-light: #9061bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b9d",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 157
  },
  "hsl": {
    "h": 269.538,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40318,
    "c": 0.19001,
    "h": 299.7
  },
  "luminance": 0.05442
}

Semantic roles & 50–950 ramp

primary
#5B1B9D
secondary
#8BC450
accent
#ED3A95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5B1B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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