#5F199C#5F199C

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

Color values

HEX#5F199C
RGBrgb(95, 25, 156)
HSLhsl(272, 72%, 35%)
HSVhsv(272, 84%, 61%)
CMYKcmyk(39.1%, 84%, 0%, 38.8%)
CIE-LABlab(28.19, 53.68, -56.69)
CIE-LCHlch(28.19, 78.07, 313.44°)
OKLaboklab(40.57% 0.1019 -0.162)
OKLCHoklch(40.57% 0.191 302.2)
XYZxyz(11.0662, 5.5284, 31.9301)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F199C #569C19
analogous
#1D199C #5F199C #9C1997
triadic
#5F199C #9C5F19 #199C5F
tetradic
#5F199C #9C1D19 #569C19 #19979C
square
#5F199C #9C1D19 #569C19 #19979C
split-complementary
#5F199C #979C19 #199C1D
monochromatic
#1F0833 #3F1167 #5F199C #7F21D1 #9D4DE2

Accessibility & contrast

On white

9.97
#5F199C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F199C
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F199C#FFFFFF#000000##FFFFFF
##5F199C1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#523F5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f199c;
/* rgb */ color: rgb(95, 25, 156);
/* oklch */ color: oklch(40.6% 0.191 302.2);
Tailwind
colors: {
  custom: {
    50: '#9360ba',
    500: '#5f199c',
    950: '#000000',
  },
}
SCSS
$custom: #5f199c;
$custom-light: #9360ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f199c",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 156
  },
  "hsl": {
    "h": 272.061,
    "s": 72.376,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4057,
    "c": 0.19135,
    "h": 302.2
  },
  "luminance": 0.05528
}

Semantic roles & 50–950 ramp

primary
#5F199C
secondary
#84C44C
accent
#EF398E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F199C

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

Preview Lab → · Contrast checker → · Palette generator →

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