#5B1E9D#5B1E9D

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

Color values

HEX#5B1E9D
RGBrgb(91, 30, 157)
HSLhsl(269, 68%, 37%)
HSVhsv(269, 81%, 62%)
CMYKcmyk(42%, 80.9%, 0%, 38.4%)
CIE-LABlab(28.35, 51.50, -57.06)
CIE-LCHlch(28.35, 76.87, 312.07°)
OKLaboklab(40.59% 0.0918 -0.1633)
OKLCHoklch(40.59% 0.187 299.4)
XYZxyz(10.8629, 5.5869, 32.3978)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1E9D #609D1E
analogous
#1E219D #5B1E9D #9B1E9D
triadic
#5B1E9D #9D5B1E #1E9D5B
tetradic
#5B1E9D #9D1E21 #609D1E #1E9D9B
square
#5B1E9D #9D1E21 #609D1E #1E9D9B
split-complementary
#5B1E9D #9D9B1E #219D1E
monochromatic
#1F0A36 #3D146A #5B1E9D #7928D0 #9857DF

Accessibility & contrast

On white

9.92
#5B1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5B1E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1E9D
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1E9D#FFFFFF#000000##FFFFFF
##5B1E9D1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#4B415E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b1e9d;
/* rgb */ color: rgb(91, 30, 157);
/* oklch */ color: oklch(40.6% 0.187 299.4);
Tailwind
colors: {
  custom: {
    50: '#9062bb',
    500: '#5b1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #5b1e9d;
$custom-light: #9062bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1e9d",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 268.819,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40586,
    "c": 0.18732,
    "h": 299.4
  },
  "luminance": 0.05587
}

Semantic roles & 50–950 ramp

primary
#5B1E9D
secondary
#8EC254
accent
#EB3D97
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5B1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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