#5F1996#5F1996

#5F1996 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.186 H 304.0°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5F1996
RGBrgb(95, 25, 150)
HSLhsl(274, 71%, 34%)
HSVhsv(274, 83%, 59%)
CMYKcmyk(36.7%, 83.3%, 0%, 41.2%)
CIE-LABlab(27.66, 52.28, -53.88)
CIE-LCHlch(27.66, 75.08, 314.13°)
OKLaboklab(40.03% 0.1038 -0.1537)
OKLCHoklch(40.03% 0.186 304)
XYZxyz(10.5707, 5.3302, 29.3202)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1996 #509619
analogous
#201996 #5F1996 #96198F
triadic
#5F1996 #965F19 #19965F
tetradic
#5F1996 #962019 #509619 #198F96
square
#5F1996 #962019 #509619 #198F96
split-complementary
#5F1996 #8F9619 #199620
monochromatic
#1D082D #3E1062 #5F1996 #8022CA #9E49E1

Accessibility & contrast

On white

10.16
#5F1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1996
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1996#FFFFFF#000000##FFFFFF
##5F19961.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#543C59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1996;
/* rgb */ color: rgb(95, 25, 150);
/* oklch */ color: oklch(40.0% 0.186 304.0);
Tailwind
colors: {
  custom: {
    50: '#9260b6',
    500: '#5f1996',
    950: '#000000',
  },
}
SCSS
$custom: #5f1996;
$custom-light: #9260b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1996",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 273.6,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40035,
    "c": 0.18551,
    "h": 304
  },
  "luminance": 0.0533
}

Semantic roles & 50–950 ramp

primary
#5F1996
secondary
#7EC249
accent
#EE3A89
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1996

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

Preview Lab → · Contrast checker → · Palette generator →

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