#5F199F#5F199F

#5F199F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.8% C 0.194 H 301.3°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5F199F
RGBrgb(95, 25, 159)
HSLhsl(271, 73%, 36%)
HSVhsv(271, 84%, 62%)
CMYKcmyk(40.3%, 84.3%, 0%, 37.6%)
CIE-LABlab(28.46, 54.38, -58.07)
CIE-LCHlch(28.46, 79.55, 313.12°)
OKLaboklab(40.84% 0.1009 -0.166)
OKLCHoklch(40.84% 0.194 301.3)
XYZxyz(11.3234, 5.6313, 33.2845)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F199F #599F19
analogous
#1C199F #5F199F #9F199C
triadic
#5F199F #9F5F19 #199F5F
tetradic
#5F199F #9F1C19 #599F19 #199C9F
square
#5F199F #9F1C19 #599F19 #199C9F
split-complementary
#5F199F #9C9F19 #199F1C
monochromatic
#200835 #3F116A #5F199F #7F21D4 #9D4FE3

Accessibility & contrast

On white

9.88
#5F199F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5F199F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F199F
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F199F#FFFFFF#000000##FFFFFF
##5F199F1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#50405E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f199f;
/* rgb */ color: rgb(95, 25, 159);
/* oklch */ color: oklch(40.8% 0.194 301.3);
Tailwind
colors: {
  custom: {
    50: '#9361bc',
    500: '#5f199f',
    950: '#000000',
  },
}
SCSS
$custom: #5f199f;
$custom-light: #9361bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f199f",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 159
  },
  "hsl": {
    "h": 271.343,
    "s": 72.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40842,
    "c": 0.19427,
    "h": 301.3
  },
  "luminance": 0.05631
}

Semantic roles & 50–950 ramp

primary
#5F199F
secondary
#87C64E
accent
#F03890
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F199F

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

Preview Lab → · Contrast checker → · Palette generator →

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