#5B1776#5B1776

#5B1776 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.155 H 314.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#5B1776
RGBrgb(91, 23, 118)
HSLhsl(283, 67%, 28%)
HSVhsv(283, 81%, 46%)
CMYKcmyk(22.9%, 80.5%, 0%, 53.7%)
CIE-LABlab(24.15, 45.07, -39.57)
CIE-LCHlch(24.15, 59.98, 318.72°)
OKLaboklab(36.63% 0.1079 -0.1118)
OKLCHoklch(36.63% 0.155 314)
XYZxyz(7.8902, 4.1452, 17.5205)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1776 #327617
analogous
#2B1776 #5B1776 #761762
triadic
#5B1776 #765B17 #17765B
tetradic
#5B1776 #762B17 #327617 #176276
square
#5B1776 #762B17 #327617 #176276
split-complementary
#5B1776 #627617 #17762B
monochromatic
#14051A #340D43 #5B1776 #8221A9 #A831D7

Accessibility & contrast

On white

11.48
#5B1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5B1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1776
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1776#FFFFFF#000000##FFFFFF
##5B17761.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#0E3B74
Tritanopia (blue-blind)
#582D46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1776;
/* rgb */ color: rgb(91, 23, 118);
/* oklch */ color: oklch(36.6% 0.155 314.0);
Tailwind
colors: {
  custom: {
    50: '#8d5d9e',
    500: '#5b1776',
    950: '#000000',
  },
}
SCSS
$custom: #5b1776;
$custom-light: #8d5d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1776",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 282.947,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3663,
    "c": 0.15538,
    "h": 314
  },
  "luminance": 0.04145
}

Semantic roles & 50–950 ramp

primary
#5B1776
secondary
#5DAB3E
accent
#EA3E6F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5B1776

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

Preview Lab → · Contrast checker → · Palette generator →

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