#5B1167#5B1167

#5B1167 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.148 H 321.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#5B1167
RGBrgb(91, 17, 103)
HSLhsl(292, 72%, 24%)
HSVhsv(292, 83%, 40%)
CMYKcmyk(11.7%, 83.5%, 0%, 59.6%)
CIE-LABlab(22.32, 44.04, -32.81)
CIE-LCHlch(22.32, 54.92, 323.31°)
OKLaboklab(34.99% 0.1157 -0.0919)
OKLCHoklch(34.99% 0.148 321.5)
XYZxyz(6.9627, 3.6047, 13.1584)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1167 #1D6711
analogous
#301167 #5B1167 #671148
triadic
#5B1167 #675B11 #11675B
tetradic
#5B1167 #673011 #1D6711 #114867
square
#5B1167 #673011 #1D6711 #114867
split-complementary
#5B1167 #486711 #116730
monochromatic
#17041A #2D0832 #5B1167 #891A9C #B822D0

Accessibility & contrast

On white

12.20
#5B1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1167
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1167#FFFFFF#000000##FFFFFF
##5B11671.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003069
Deuteranopia (green-blind)
#1D3865
Tritanopia (blue-blind)
#5C233C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1167;
/* rgb */ color: rgb(91, 17, 103);
/* oklch */ color: oklch(35.0% 0.148 321.5);
Tailwind
colors: {
  custom: {
    50: '#8d5a93',
    500: '#5b1167',
    950: '#000000',
  },
}
SCSS
$custom: #5b1167;
$custom-light: #8d5a93;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1167",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 291.628,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34989,
    "c": 0.14775,
    "h": 321.5
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#5B1167
secondary
#449F35
accent
#EE3953
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5B1167

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

Preview Lab → · Contrast checker → · Palette generator →

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