#5D199F#5D199F

#5D199F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.6% C 0.194 H 300.3°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5D199F
RGBrgb(93, 25, 159)
HSLhsl(270, 73%, 36%)
HSVhsv(270, 84%, 62%)
CMYKcmyk(41.5%, 84.3%, 0%, 37.6%)
CIE-LABlab(28.18, 54.09, -58.54)
CIE-LCHlch(28.18, 79.70, 312.74°)
OKLaboklab(40.59% 0.0978 -0.1675)
OKLCHoklch(40.59% 0.194 300.3)
XYZxyz(11.1183, 5.5255, 33.2749)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D199F #5B9F19
analogous
#1A199F #5D199F #9F199E
triadic
#5D199F #9F5D19 #199F5D
tetradic
#5D199F #9F1A19 #5B9F19 #199E9F
square
#5D199F #9F1A19 #5B9F19 #199E9F
split-complementary
#5D199F #9E9F19 #199F1A
monochromatic
#1F0835 #3E116A #5D199F #7C21D4 #9A4FE3

Accessibility & contrast

On white

9.98
#5D199F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5D199F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D199F
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D199F#FFFFFF#000000##FFFFFF
##5D199F1.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#4D405E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d199f;
/* rgb */ color: rgb(93, 25, 159);
/* oklch */ color: oklch(40.6% 0.194 300.3);
Tailwind
colors: {
  custom: {
    50: '#9260bc',
    500: '#5d199f',
    950: '#000000',
  },
}
SCSS
$custom: #5d199f;
$custom-light: #9260bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d199f",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 159
  },
  "hsl": {
    "h": 270.448,
    "s": 72.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40588,
    "c": 0.19395,
    "h": 300.3
  },
  "luminance": 0.05526
}

Semantic roles & 50–950 ramp

primary
#5D199F
secondary
#89C64E
accent
#F03893
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D199F

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

Preview Lab → · Contrast checker → · Palette generator →

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