#5B197D#5B197D

#5B197D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.160 H 310.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#5B197D
RGBrgb(91, 25, 125)
HSLhsl(280, 67%, 29%)
HSVhsv(280, 80%, 49%)
CMYKcmyk(27.2%, 80%, 0%, 51%)
CIE-LABlab(24.95, 45.87, -42.71)
CIE-LCHlch(24.95, 62.68, 317.04°)
OKLaboklab(37.37% 0.1047 -0.1211)
OKLCHoklch(37.37% 0.16 310.8)
XYZxyz(8.3630, 4.4003, 19.8068)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B197D #3B7D19
analogous
#29197D #5B197D #7D196D
triadic
#5B197D #7D5B19 #197D5B
tetradic
#5B197D #7D2919 #3B7D19 #196D7D
square
#5B197D #7D2919 #3B7D19 #196D7D
split-complementary
#5B197D #6D7D19 #197D29
monochromatic
#13051A #360F4A #5B197D #8023B0 #A239D7

Accessibility & contrast

On white

11.17
#5B197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B197D
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B197D#FFFFFF#000000##FFFFFF
##5B197D1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#56314B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b197d;
/* rgb */ color: rgb(91, 25, 125);
/* oklch */ color: oklch(37.4% 0.160 310.8);
Tailwind
colors: {
  custom: {
    50: '#8e5ea3',
    500: '#5b197d',
    950: '#000000',
  },
}
SCSS
$custom: #5b197d;
$custom-light: #8e5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b197d",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 279.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3737,
    "c": 0.16004,
    "h": 310.8
  },
  "luminance": 0.044
}

Semantic roles & 50–950 ramp

primary
#5B197D
secondary
#67B140
accent
#EA3E78
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B197D

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

Preview Lab → · Contrast checker → · Palette generator →

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