#5B197E#5B197E

#5B197E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.161 H 310.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#5B197E
RGBrgb(91, 25, 126)
HSLhsl(279, 67%, 30%)
HSVhsv(279, 80%, 49%)
CMYKcmyk(27.8%, 80.2%, 0%, 50.6%)
CIE-LABlab(25.03, 46.09, -43.22)
CIE-LCHlch(25.03, 63.18, 316.84°)
OKLaboklab(37.45% 0.1045 -0.1225)
OKLCHoklch(37.45% 0.161 310.4)
XYZxyz(8.4272, 4.4260, 20.1450)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B197E #3C7E19
analogous
#29197E #5B197E #7E196F
triadic
#5B197E #7E5B19 #197E5B
tetradic
#5B197E #7E2919 #3C7E19 #196F7E
square
#5B197E #7E2919 #3C7E19 #196F7E
split-complementary
#5B197E #6F7E19 #197E29
monochromatic
#12051A #360F4B #5B197E #8023B1 #A13AD8

Accessibility & contrast

On white

11.14
#5B197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5B197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B197E
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B197E#FFFFFF#000000##FFFFFF
##5B197E1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#56324B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b197e;
/* rgb */ color: rgb(91, 25, 126);
/* oklch */ color: oklch(37.5% 0.161 310.4);
Tailwind
colors: {
  custom: {
    50: '#8e5ea4',
    500: '#5b197e',
    950: '#000000',
  },
}
SCSS
$custom: #5b197e;
$custom-light: #8e5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b197e",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 279.208,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37451,
    "c": 0.16102,
    "h": 310.4
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#5B197E
secondary
#68B241
accent
#EA3E7A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B197E

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

Preview Lab → · Contrast checker → · Palette generator →

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