#5B1B7D#5B1B7D

#5B1B7D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.158 H 310.6°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5B1B7D
RGBrgb(91, 27, 125)
HSLhsl(279, 64%, 30%)
HSVhsv(279, 78%, 49%)
CMYKcmyk(27.2%, 78.4%, 0%, 51%)
CIE-LABlab(25.23, 45.08, -42.27)
CIE-LCHlch(25.23, 61.80, 316.84°)
OKLaboklab(37.56% 0.1028 -0.1198)
OKLCHoklch(37.56% 0.158 310.6)
XYZxyz(8.4073, 4.4889, 19.8216)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B7D #3D7D1B
analogous
#2A1B7D #5B1B7D #7D1B6E
triadic
#5B1B7D #7D5B1B #1B7D5B
tetradic
#5B1B7D #7D2A1B #3D7D1B #1B6E7D
square
#5B1B7D #7D2A1B #3D7D1B #1B6E7D
split-complementary
#5B1B7D #6E7D1B #1B7D2A
monochromatic
#120519 #36104B #5B1B7D #8026AF #A03DD5

Accessibility & contrast

On white

11.07
#5B1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5B1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1B7D
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B7D#FFFFFF#000000##FFFFFF
##5B1B7D1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#043D7B
Tritanopia (blue-blind)
#56324B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1b7d;
/* rgb */ color: rgb(91, 27, 125);
/* oklch */ color: oklch(37.6% 0.158 310.6);
Tailwind
colors: {
  custom: {
    50: '#8d5fa3',
    500: '#5b1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b7d;
$custom-light: #8d5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b7d",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 279.184,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37562,
    "c": 0.15784,
    "h": 310.6
  },
  "luminance": 0.04489
}

Semantic roles & 50–950 ramp

primary
#5B1B7D
secondary
#69B143
accent
#E7407A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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