#5B196D#5B196D

#5B196D is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.144 H 318.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#5B196D
RGBrgb(91, 25, 109)
HSLhsl(287, 63%, 26%)
HSVhsv(287, 77%, 43%)
CMYKcmyk(16.5%, 77.1%, 0%, 57.3%)
CIE-LABlab(23.75, 42.37, -34.42)
CIE-LCHlch(23.75, 54.59, 320.92°)
OKLaboklab(36.14% 0.1073 -0.0967)
OKLCHoklch(36.14% 0.144 318)
XYZxyz(7.4219, 4.0239, 14.8508)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B196D #2B6D19
analogous
#31196D #5B196D #6D1955
triadic
#5B196D #6D5B19 #196D5B
tetradic
#5B196D #6D3119 #2B6D19 #19556D
square
#5B196D #6D3119 #2B6D19 #19556D
split-complementary
#5B196D #556D19 #196D31
monochromatic
#150619 #310E3B #5B196D #85249F #AE31D0

Accessibility & contrast

On white

11.64
#5B196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B196D
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B196D#FFFFFF#000000##FFFFFF
##5B196D1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#1C3B6B
Tritanopia (blue-blind)
#5A2A42
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b196d;
/* rgb */ color: rgb(91, 25, 109);
/* oklch */ color: oklch(36.1% 0.144 318.0);
Tailwind
colors: {
  custom: {
    50: '#8d5d97',
    500: '#5b196d',
    950: '#000000',
  },
}
SCSS
$custom: #5b196d;
$custom-light: #8d5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5b196d",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 287.143,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36139,
    "c": 0.14446,
    "h": 318
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#5B196D
secondary
#55A23F
accent
#E64265
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5B196D

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

Preview Lab → · Contrast checker → · Palette generator →

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