#5B196B#5B196B

#5B196B is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.0% C 0.143 H 319.0°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5B196B
RGBrgb(91, 25, 107)
HSLhsl(288, 62%, 26%)
HSVhsv(288, 77%, 42%)
CMYKcmyk(15%, 76.6%, 0%, 58%)
CIE-LABlab(23.61, 41.96, -33.35)
CIE-LCHlch(23.61, 53.59, 321.52°)
OKLaboklab(35.99% 0.1075 -0.0936)
OKLCHoklch(35.99% 0.143 319)
XYZxyz(7.3155, 3.9813, 14.2902)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B196B #296B19
analogous
#32196B #5B196B #6B1952
triadic
#5B196B #6B5B19 #196B5B
tetradic
#5B196B #6B3219 #296B19 #19526B
square
#5B196B #6B3219 #296B19 #19526B
split-complementary
#5B196B #526B19 #196B32
monochromatic
#150619 #310D39 #5B196B #85259D #AF30CE

Accessibility & contrast

On white

11.69
#5B196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5B196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B196B
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B196B#FFFFFF#000000##FFFFFF
##5B196B1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#1E3A69
Tritanopia (blue-blind)
#5B2940
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b196b;
/* rgb */ color: rgb(91, 25, 107);
/* oklch */ color: oklch(36.0% 0.143 319.0);
Tailwind
colors: {
  custom: {
    50: '#8c5d96',
    500: '#5b196b',
    950: '#000000',
  },
}
SCSS
$custom: #5b196b;
$custom-light: #8c5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5b196b",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 288.293,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35994,
    "c": 0.14253,
    "h": 319
  },
  "luminance": 0.03981
}

Semantic roles & 50–950 ramp

primary
#5B196B
secondary
#52A13F
accent
#E54362
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5B196B

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

Preview Lab → · Contrast checker → · Palette generator →

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