#5B1EA7#5B1EA7

#5B1EA7 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.5% C 0.198 H 296.6°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5B1EA7
RGBrgb(91, 30, 167)
HSLhsl(267, 70%, 39%)
HSVhsv(267, 82%, 65%)
CMYKcmyk(45.5%, 82%, 0%, 34.5%)
CIE-LABlab(29.27, 53.98, -61.62)
CIE-LCHlch(29.27, 81.92, 311.22°)
OKLaboklab(41.51% 0.0886 -0.1766)
OKLCHoklch(41.51% 0.198 296.6)
XYZxyz(11.7519, 5.9424, 37.0796)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1EA7 #6AA71E
analogous
#1E26A7 #5B1EA7 #9F1EA7
triadic
#5B1EA7 #A75B1E #1EA75B
tetradic
#5B1EA7 #A71E26 #6AA71E #1EA79F
square
#5B1EA7 #A71E26 #6AA71E #1EA79F
split-complementary
#5B1EA7 #A79F1E #26A71E
monochromatic
#220B3F #3F1573 #5B1EA7 #782AD9 #985DE2

Accessibility & contrast

On white

9.60
#5B1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5B1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1EA7
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1EA7#FFFFFF#000000##FFFFFF
##5B1EA71.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#464664
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b1ea7;
/* rgb */ color: rgb(91, 30, 167);
/* oklch */ color: oklch(41.5% 0.198 296.6);
Tailwind
colors: {
  custom: {
    50: '#9163c2',
    500: '#5b1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #5b1ea7;
$custom-light: #9163c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1ea7",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 266.715,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41507,
    "c": 0.1976,
    "h": 296.6
  },
  "luminance": 0.05943
}

Semantic roles & 50–950 ramp

primary
#5B1EA7
secondary
#96C65B
accent
#EC3B9E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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