#5B197C#5B197C

#5B197C is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.159 H 311.3°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#5B197C
RGBrgb(91, 25, 124)
HSLhsl(280, 66%, 29%)
HSVhsv(280, 80%, 49%)
CMYKcmyk(26.6%, 79.8%, 0%, 51.4%)
CIE-LABlab(24.87, 45.64, -42.21)
CIE-LCHlch(24.87, 62.17, 317.24°)
OKLaboklab(37.29% 0.1049 -0.1196)
OKLCHoklch(37.29% 0.159 311.3)
XYZxyz(8.2994, 4.3749, 19.4721)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B197C #3A7C19
analogous
#2A197C #5B197C #7C196C
triadic
#5B197C #7C5B19 #197C5B
tetradic
#5B197C #7C2A19 #3A7C19 #196C7C
square
#5B197C #7C2A19 #3A7C19 #196C7C
split-complementary
#5B197C #6C7C19 #197C2A
monochromatic
#130519 #360F49 #5B197C #8023AF #A238D7

Accessibility & contrast

On white

11.20
#5B197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5B197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B197C
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B197C#FFFFFF#000000##FFFFFF
##5B197C1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#033C7A
Tritanopia (blue-blind)
#57314A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b197c;
/* rgb */ color: rgb(91, 25, 124);
/* oklch */ color: oklch(37.3% 0.159 311.3);
Tailwind
colors: {
  custom: {
    50: '#8d5ea3',
    500: '#5b197c',
    950: '#000000',
  },
}
SCSS
$custom: #5b197c;
$custom-light: #8d5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b197c",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 280,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3729,
    "c": 0.15906,
    "h": 311.3
  },
  "luminance": 0.04375
}

Semantic roles & 50–950 ramp

primary
#5B197C
secondary
#66B040
accent
#E93E77
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B197C

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

Preview Lab → · Contrast checker → · Palette generator →

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