#5B197F#5B197F

#5B197F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.162 H 310.0°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5B197F
RGBrgb(91, 25, 127)
HSLhsl(279, 67%, 30%)
HSVhsv(279, 80%, 50%)
CMYKcmyk(28.3%, 80.3%, 0%, 50.2%)
CIE-LABlab(25.11, 46.32, -43.72)
CIE-LCHlch(25.11, 63.69, 316.65°)
OKLaboklab(37.53% 0.1042 -0.124)
OKLCHoklch(37.53% 0.162 310)
XYZxyz(8.4920, 4.4519, 20.4865)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B197F #3D7F19
analogous
#28197F #5B197F #7F1970
triadic
#5B197F #7F5B19 #197F5B
tetradic
#5B197F #7F2819 #3D7F19 #19707F
square
#5B197F #7F2819 #3D7F19 #19707F
split-complementary
#5B197F #707F19 #197F28
monochromatic
#12051A #360F4C #5B197F #8023B2 #A03AD8

Accessibility & contrast

On white

11.11
#5B197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B197F
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B197F#FFFFFF#000000##FFFFFF
##5B197F1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#56324C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b197f;
/* rgb */ color: rgb(91, 25, 127);
/* oklch */ color: oklch(37.5% 0.162 310.0);
Tailwind
colors: {
  custom: {
    50: '#8e5ea5',
    500: '#5b197f',
    950: '#000000',
  },
}
SCSS
$custom: #5b197f;
$custom-light: #8e5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b197f",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 278.824,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37532,
    "c": 0.162,
    "h": 310
  },
  "luminance": 0.04452
}

Semantic roles & 50–950 ramp

primary
#5B197F
secondary
#69B341
accent
#EA3E7B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B197F

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

Preview Lab → · Contrast checker → · Palette generator →

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