#5B1FA9#5B1FA9

#5B1FA9 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.199 H 296.0°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5B1FA9
RGBrgb(91, 31, 169)
HSLhsl(266, 69%, 39%)
HSVhsv(266, 82%, 66%)
CMYKcmyk(46.2%, 81.7%, 0%, 33.7%)
CIE-LABlab(29.58, 54.10, -62.30)
CIE-LCHlch(29.58, 82.51, 310.97°)
OKLaboklab(41.78% 0.0872 -0.1786)
OKLCHoklch(41.78% 0.199 296)
XYZxyz(11.9639, 6.0684, 38.0694)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1FA9 #6DA91F
analogous
#1F28A9 #5B1FA9 #A01FA9
triadic
#5B1FA9 #A95B1F #1FA95B
tetradic
#5B1FA9 #A91F28 #6DA91F #1FA9A0
square
#5B1FA9 #A91F28 #6DA91F #1FA9A0
split-complementary
#5B1FA9 #A9A01F #28A91F
monochromatic
#230C42 #3F1675 #5B1FA9 #772DD8 #9960E2

Accessibility & contrast

On white

9.49
#5B1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5B1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1FA9
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1FA9#FFFFFF#000000##FFFFFF
##5B1FA91.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#454765
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b1fa9;
/* rgb */ color: rgb(91, 31, 169);
/* oklch */ color: oklch(41.8% 0.199 296.0);
Tailwind
colors: {
  custom: {
    50: '#9263c4',
    500: '#5b1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #5b1fa9;
$custom-light: #9263c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1fa9",
  "rgb": {
    "r": 91,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 266.087,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41784,
    "c": 0.19879,
    "h": 296
  },
  "luminance": 0.06069
}

Semantic roles & 50–950 ramp

primary
#5B1FA9
secondary
#99C75D
accent
#EC3C9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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