#5F199E#5F199E

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

Color values

HEX#5F199E
RGBrgb(95, 25, 158)
HSLhsl(272, 73%, 36%)
HSVhsv(272, 84%, 62%)
CMYKcmyk(39.9%, 84.2%, 0%, 38%)
CIE-LABlab(28.37, 54.14, -57.61)
CIE-LCHlch(28.37, 79.06, 313.22°)
OKLaboklab(40.75% 0.1012 -0.1647)
OKLCHoklch(40.75% 0.193 301.6)
XYZxyz(11.2370, 5.5967, 32.8294)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F199E #589E19
analogous
#1C199E #5F199E #9E199A
triadic
#5F199E #9E5F19 #199E5F
tetradic
#5F199E #9E1C19 #589E19 #199A9E
square
#5F199E #9E1C19 #589E19 #199A9E
split-complementary
#5F199E #9A9E19 #199E1C
monochromatic
#1F0834 #3F1169 #5F199E #7F21D3 #9D4EE3

Accessibility & contrast

On white

9.91
#5F199E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F199E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F199E
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F199E#FFFFFF#000000##FFFFFF
##5F199E1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#51405E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f199e;
/* rgb */ color: rgb(95, 25, 158);
/* oklch */ color: oklch(40.8% 0.193 301.6);
Tailwind
colors: {
  custom: {
    50: '#9361bc',
    500: '#5f199e',
    950: '#000000',
  },
}
SCSS
$custom: #5f199e;
$custom-light: #9361bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f199e",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 158
  },
  "hsl": {
    "h": 271.579,
    "s": 72.678,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40751,
    "c": 0.1933,
    "h": 301.6
  },
  "luminance": 0.05597
}

Semantic roles & 50–950 ramp

primary
#5F199E
secondary
#86C54E
accent
#EF388F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F199E

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

Preview Lab → · Contrast checker → · Palette generator →

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