#5B196E#5B196E

#5B196E is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.145 H 317.5°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#5B196E
RGBrgb(91, 25, 110)
HSLhsl(287, 63%, 26%)
HSVhsv(287, 77%, 43%)
CMYKcmyk(17.3%, 77.3%, 0%, 56.9%)
CIE-LABlab(23.82, 42.59, -34.95)
CIE-LCHlch(23.82, 55.09, 320.63°)
OKLaboklab(36.21% 0.1072 -0.0983)
OKLCHoklch(36.21% 0.145 317.5)
XYZxyz(7.4761, 4.0455, 15.1359)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B196E #2C6E19
analogous
#31196E #5B196E #6E1957
triadic
#5B196E #6E5B19 #196E5B
tetradic
#5B196E #6E3119 #2C6E19 #19576E
square
#5B196E #6E3119 #2C6E19 #19576E
split-complementary
#5B196E #576E19 #196E31
monochromatic
#150619 #320E3C #5B196E #8424A0 #AD31D0

Accessibility & contrast

On white

11.61
#5B196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5B196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B196E
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B196E#FFFFFF#000000##FFFFFF
##5B196E1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#1B3B6C
Tritanopia (blue-blind)
#5A2B42
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b196e;
/* rgb */ color: rgb(91, 25, 110);
/* oklch */ color: oklch(36.2% 0.145 317.5);
Tailwind
colors: {
  custom: {
    50: '#8d5d98',
    500: '#5b196e',
    950: '#000000',
  },
}
SCSS
$custom: #5b196e;
$custom-light: #8d5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#5b196e",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 286.588,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36213,
    "c": 0.14543,
    "h": 317.5
  },
  "luminance": 0.04045
}

Semantic roles & 50–950 ramp

primary
#5B196E
secondary
#56A33F
accent
#E64266
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5B196E

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

Preview Lab → · Contrast checker → · Palette generator →

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