#5D199C#5D199C

#5D199C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.191 H 301.2°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5D199C
RGBrgb(93, 25, 156)
HSLhsl(271, 72%, 35%)
HSVhsv(271, 84%, 61%)
CMYKcmyk(40.4%, 84%, 0%, 38.8%)
CIE-LABlab(27.91, 53.38, -57.16)
CIE-LCHlch(27.91, 78.21, 313.04°)
OKLaboklab(40.31% 0.0988 -0.1634)
OKLCHoklch(40.31% 0.191 301.2)
XYZxyz(10.8611, 5.4226, 31.9205)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D199C #589C19
analogous
#1B199C #5D199C #9C1999
triadic
#5D199C #9C5D19 #199C5D
tetradic
#5D199C #9C1B19 #589C19 #19999C
square
#5D199C #9C1B19 #589C19 #19999C
split-complementary
#5D199C #999C19 #199C1B
monochromatic
#1E0833 #3E1167 #5D199C #7C21D1 #9B4DE2

Accessibility & contrast

On white

10.07
#5D199C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D199C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D199C
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D199C#FFFFFF#000000##FFFFFF
##5D199C1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#4F3F5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d199c;
/* rgb */ color: rgb(93, 25, 156);
/* oklch */ color: oklch(40.3% 0.191 301.2);
Tailwind
colors: {
  custom: {
    50: '#9260ba',
    500: '#5d199c',
    950: '#000000',
  },
}
SCSS
$custom: #5d199c;
$custom-light: #9260ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d199c",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 156
  },
  "hsl": {
    "h": 271.145,
    "s": 72.376,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40313,
    "c": 0.191,
    "h": 301.2
  },
  "luminance": 0.05423
}

Semantic roles & 50–950 ramp

primary
#5D199C
secondary
#86C44C
accent
#EF3990
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D199C

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

Preview Lab → · Contrast checker → · Palette generator →

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