#5B199C#5B199C

#5B199C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.191 H 300.2°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5B199C
RGBrgb(91, 25, 156)
HSLhsl(270, 72%, 35%)
HSVhsv(270, 84%, 61%)
CMYKcmyk(41.7%, 84%, 0%, 38.8%)
CIE-LABlab(27.63, 53.09, -57.63)
CIE-LCHlch(27.63, 78.36, 312.65°)
OKLaboklab(40.06% 0.0958 -0.1649)
OKLCHoklch(40.06% 0.191 300.2)
XYZxyz(10.6613, 5.3196, 31.9111)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B199C #5A9C19
analogous
#19199C #5B199C #9C199B
triadic
#5B199C #9C5B19 #199C5B
tetradic
#5B199C #9C1919 #5A9C19 #199B9C
square
#5B199C #9C1919 #5A9C19 #199B9C
split-complementary
#5B199C #9B9C19 #199C19
monochromatic
#1D0833 #3C1167 #5B199C #7A21D1 #984DE2

Accessibility & contrast

On white

10.17
#5B199C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5B199C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B199C
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B199C#FFFFFF#000000##FFFFFF
##5B199C1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#4B3F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b199c;
/* rgb */ color: rgb(91, 25, 156);
/* oklch */ color: oklch(40.1% 0.191 300.2);
Tailwind
colors: {
  custom: {
    50: '#9060ba',
    500: '#5b199c',
    950: '#000000',
  },
}
SCSS
$custom: #5b199c;
$custom-light: #9060ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b199c",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 156
  },
  "hsl": {
    "h": 270.229,
    "s": 72.376,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4006,
    "c": 0.19068,
    "h": 300.2
  },
  "luminance": 0.0532
}

Semantic roles & 50–950 ramp

primary
#5B199C
secondary
#88C44C
accent
#EF3993
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5B199C

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

Preview Lab → · Contrast checker → · Palette generator →

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