#5B1CA9#5B1CA9

#5B1CA9 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.5% C 0.201 H 296.3°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5B1CA9
RGBrgb(91, 28, 169)
HSLhsl(267, 72%, 39%)
HSVhsv(267, 83%, 66%)
CMYKcmyk(46.2%, 83.4%, 0%, 33.7%)
CIE-LABlab(29.21, 55.20, -62.92)
CIE-LCHlch(29.21, 83.70, 311.26°)
OKLaboklab(41.52% 0.0893 -0.1804)
OKLCHoklch(41.52% 0.201 296.3)
XYZxyz(11.8892, 5.9189, 38.0445)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1CA9 #6AA91C
analogous
#1C23A9 #5B1CA9 #A11CA9
triadic
#5B1CA9 #A95B1C #1CA95B
tetradic
#5B1CA9 #A91C23 #6AA91C #1CA9A1
square
#5B1CA9 #A91C23 #6AA91C #1CA9A1
split-complementary
#5B1CA9 #A9A11C #23A91C
monochromatic
#220B40 #3F1374 #5B1CA9 #7827DB #985BE4

Accessibility & contrast

On white

9.62
#5B1CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5B1CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1CA9
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1CA9#FFFFFF#000000##FFFFFF
##5B1CA91.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#454665
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b1ca9;
/* rgb */ color: rgb(91, 28, 169);
/* oklch */ color: oklch(41.5% 0.201 296.3);
Tailwind
colors: {
  custom: {
    50: '#9262c4',
    500: '#5b1ca9',
    950: '#000000',
  },
}
SCSS
$custom: #5b1ca9;
$custom-light: #9262c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1ca9",
  "rgb": {
    "r": 91,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 266.809,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41523,
    "c": 0.20129,
    "h": 296.3
  },
  "luminance": 0.05919
}

Semantic roles & 50–950 ramp

primary
#5B1CA9
secondary
#96C859
accent
#EE399E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B1CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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