#5B196A#5B196A

#5B196A is a dark, vivid purple. Relative luminance 0.040; OKLCH L 35.9% C 0.142 H 319.5°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#5B196A
RGBrgb(91, 25, 106)
HSLhsl(289, 62%, 26%)
HSVhsv(289, 76%, 42%)
CMYKcmyk(14.2%, 76.4%, 0%, 58.4%)
CIE-LABlab(23.54, 41.75, -32.81)
CIE-LCHlch(23.54, 53.10, 321.84°)
OKLaboklab(35.92% 0.1076 -0.092)
OKLCHoklch(35.92% 0.142 319.5)
XYZxyz(7.2632, 3.9604, 14.0147)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B196A #286A19
analogous
#32196A #5B196A #6A1950
triadic
#5B196A #6A5B19 #196A5B
tetradic
#5B196A #6A3219 #286A19 #19506A
square
#5B196A #6A3219 #286A19 #19506A
split-complementary
#5B196A #506A19 #196A32
monochromatic
#150619 #300D38 #5B196A #86259C #B030CD

Accessibility & contrast

On white

11.72
#5B196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5B196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B196A
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B196A#FFFFFF#000000##FFFFFF
##5B196A1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b196a;
/* rgb */ color: rgb(91, 25, 106);
/* oklch */ color: oklch(35.9% 0.142 319.5);
Tailwind
colors: {
  custom: {
    50: '#8c5d95',
    500: '#5b196a',
    950: '#000000',
  },
}
SCSS
$custom: #5b196a;
$custom-light: #8c5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#5b196a",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 288.889,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35923,
    "c": 0.14158,
    "h": 319.5
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#5B196A
secondary
#51A03F
accent
#E54361
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5B196A

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

Preview Lab → · Contrast checker → · Palette generator →

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