#5F199D#5F199D

#5F199D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.192 H 301.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5F199D
RGBrgb(95, 25, 157)
HSLhsl(272, 73%, 36%)
HSVhsv(272, 84%, 62%)
CMYKcmyk(39.5%, 84.1%, 0%, 38.4%)
CIE-LABlab(28.28, 53.91, -57.15)
CIE-LCHlch(28.28, 78.56, 313.33°)
OKLaboklab(40.66% 0.1016 -0.1633)
OKLCHoklch(40.66% 0.192 301.9)
XYZxyz(11.1513, 5.5624, 32.3779)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F199D #579D19
analogous
#1D199D #5F199D #9D1999
triadic
#5F199D #9D5F19 #199D5F
tetradic
#5F199D #9D1D19 #579D19 #19999D
square
#5F199D #9D1D19 #579D19 #19999D
split-complementary
#5F199D #999D19 #199D1D
monochromatic
#1F0833 #3F1168 #5F199D #7F21D2 #9D4EE3

Accessibility & contrast

On white

9.94
#5F199D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F199D
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F199D#FFFFFF#000000##FFFFFF
##5F199D1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#513F5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f199d;
/* rgb */ color: rgb(95, 25, 157);
/* oklch */ color: oklch(40.7% 0.192 301.9);
Tailwind
colors: {
  custom: {
    50: '#9360bb',
    500: '#5f199d',
    950: '#000000',
  },
}
SCSS
$custom: #5f199d;
$custom-light: #9360bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f199d",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 157
  },
  "hsl": {
    "h": 271.818,
    "s": 72.527,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4066,
    "c": 0.19232,
    "h": 301.9
  },
  "luminance": 0.05562
}

Semantic roles & 50–950 ramp

primary
#5F199D
secondary
#85C54D
accent
#EF398E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F199D

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

Preview Lab → · Contrast checker → · Palette generator →

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