#5B1D9E#5B1D9E

#5B1D9E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.189 H 299.2°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5B1D9E
RGBrgb(91, 29, 158)
HSLhsl(269, 69%, 37%)
HSVhsv(269, 82%, 62%)
CMYKcmyk(42.4%, 81.6%, 0%, 38%)
CIE-LABlab(28.30, 52.13, -57.74)
CIE-LCHlch(28.30, 77.79, 312.08°)
OKLaboklab(40.59% 0.0923 -0.1652)
OKLCHoklch(40.59% 0.189 299.2)
XYZxyz(10.9237, 5.5713, 32.8410)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1D9E #609E1D
analogous
#1D209E #5B1D9E #9C1D9E
triadic
#5B1D9E #9E5B1D #1D9E5B
tetradic
#5B1D9E #9E1D20 #609E1D #1D9E9C
square
#5B1D9E #9E1D20 #609E1D #1D9E9C
split-complementary
#5B1D9E #9E9C1D #209E1D
monochromatic
#1F0A37 #3D146A #5B1D9E #7926D2 #9856E0

Accessibility & contrast

On white

9.93
#5B1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5B1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1D9E
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1D9E#FFFFFF#000000##FFFFFF
##5B1D9E1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#4A425E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b1d9e;
/* rgb */ color: rgb(91, 29, 158);
/* oklch */ color: oklch(40.6% 0.189 299.2);
Tailwind
colors: {
  custom: {
    50: '#9062bc',
    500: '#5b1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #5b1d9e;
$custom-light: #9062bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1d9e",
  "rgb": {
    "r": 91,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 268.837,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40585,
    "c": 0.18926,
    "h": 299.2
  },
  "luminance": 0.05571
}

Semantic roles & 50–950 ramp

primary
#5B1D9E
secondary
#8EC354
accent
#EC3C97
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5B1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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