#5B16A1#5B16A1

#5B16A1 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.198 H 299.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#5B16A1
RGBrgb(91, 22, 161)
HSLhsl(270, 76%, 36%)
HSVhsv(270, 86%, 63%)
CMYKcmyk(43.5%, 86.3%, 0%, 36.9%)
CIE-LABlab(27.77, 55.25, -60.45)
CIE-LCHlch(27.77, 81.90, 312.43°)
OKLaboklab(40.3% 0.0959 -0.1731)
OKLCHoklch(40.3% 0.198 299)
XYZxyz(11.0327, 5.3710, 34.1667)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B16A1 #5CA116
analogous
#1617A1 #5B16A1 #A016A1
triadic
#5B16A1 #A15B16 #16A15B
tetradic
#5B16A1 #A11617 #5CA116 #16A1A0
square
#5B16A1 #A11617 #5CA116 #16A1A0
split-complementary
#5B16A1 #A1A016 #17A116
monochromatic
#1E0735 #3D0F6B #5B16A1 #791DD7 #984BE6

Accessibility & contrast

On white

10.12
#5B16A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B16A1
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B16A1#FFFFFF#000000##FFFFFF
##5B16A11.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#49405F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b16a1;
/* rgb */ color: rgb(91, 22, 161);
/* oklch */ color: oklch(40.3% 0.198 299.0);
Tailwind
colors: {
  custom: {
    50: '#915fbe',
    500: '#5b16a1',
    950: '#000000',
  },
}
SCSS
$custom: #5b16a1;
$custom-light: #915fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5b16a1",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 161
  },
  "hsl": {
    "h": 269.784,
    "s": 75.956,
    "l": 35.882
  },
  "oklch": {
    "l": 0.403,
    "c": 0.19789,
    "h": 299
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#5B16A1
secondary
#8AC84B
accent
#F33595
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5B16A1

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

Preview Lab → · Contrast checker → · Palette generator →

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