#5B16A0#5B16A0

#5B16A0 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.2% C 0.197 H 299.3°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5B16A0
RGBrgb(91, 22, 160)
HSLhsl(270, 76%, 36%)
HSVhsv(270, 86%, 63%)
CMYKcmyk(43.1%, 86.3%, 0%, 37.3%)
CIE-LABlab(27.67, 55.02, -60.00)
CIE-LCHlch(27.67, 81.40, 312.52°)
OKLaboklab(40.21% 0.0963 -0.1718)
OKLCHoklch(40.21% 0.197 299.3)
XYZxyz(10.9448, 5.3359, 33.7042)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B16A0 #5BA016
analogous
#1616A0 #5B16A0 #A016A0
triadic
#5B16A0 #A05B16 #16A05B
tetradic
#5B16A0 #A01616 #5BA016 #16A0A0
square
#5B16A0 #A01616 #5BA016 #16A0A0
split-complementary
#5B16A0 #A0A016 #16A016
monochromatic
#1E0734 #3C0F6A #5B16A0 #7A1DD6 #984AE6

Accessibility & contrast

On white

10.16
#5B16A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5B16A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B16A0
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B16A0#FFFFFF#000000##FFFFFF
##5B16A01.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#4A405E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b16a0;
/* rgb */ color: rgb(91, 22, 160);
/* oklch */ color: oklch(40.2% 0.197 299.3);
Tailwind
colors: {
  custom: {
    50: '#915fbd',
    500: '#5b16a0',
    950: '#000000',
  },
}
SCSS
$custom: #5b16a0;
$custom-light: #915fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b16a0",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 160
  },
  "hsl": {
    "h": 270,
    "s": 75.824,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40205,
    "c": 0.19692,
    "h": 299.3
  },
  "luminance": 0.05336
}

Semantic roles & 50–950 ramp

primary
#5B16A0
secondary
#89C84A
accent
#F23594
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5B16A0

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

Preview Lab → · Contrast checker → · Palette generator →

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