#5B197A#5B197A

#5B197A is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.157 H 312.1°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#5B197A
RGBrgb(91, 25, 122)
HSLhsl(281, 66%, 29%)
HSVhsv(281, 80%, 48%)
CMYKcmyk(25.4%, 79.5%, 0%, 52.2%)
CIE-LABlab(24.72, 45.20, -41.19)
CIE-LCHlch(24.72, 61.15, 317.65°)
OKLaboklab(37.13% 0.1053 -0.1166)
OKLCHoklch(37.13% 0.157 312.1)
XYZxyz(8.1742, 4.3248, 18.8127)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B197A #387A19
analogous
#2B197A #5B197A #7A1969
triadic
#5B197A #7A5B19 #197A5B
tetradic
#5B197A #7A2B19 #387A19 #19697A
square
#5B197A #7A2B19 #387A19 #19697A
split-complementary
#5B197A #697A19 #197A2B
monochromatic
#130519 #350F47 #5B197A #8123AD #A337D6

Accessibility & contrast

On white

11.26
#5B197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B197A
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B197A#FFFFFF#000000##FFFFFF
##5B197A1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#083C78
Tritanopia (blue-blind)
#573049
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b197a;
/* rgb */ color: rgb(91, 25, 122);
/* oklch */ color: oklch(37.1% 0.157 312.1);
Tailwind
colors: {
  custom: {
    50: '#8d5ea1',
    500: '#5b197a',
    950: '#000000',
  },
}
SCSS
$custom: #5b197a;
$custom-light: #8d5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b197a",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 280.825,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3713,
    "c": 0.1571,
    "h": 312.1
  },
  "luminance": 0.04325
}

Semantic roles & 50–950 ramp

primary
#5B197A
secondary
#64AF40
accent
#E93F75
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B197A

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

Preview Lab → · Contrast checker → · Palette generator →

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