#5F1D86#5F1D86

#5F1D86 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.166 H 309.2°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#5F1D86
RGBrgb(95, 29, 134)
HSLhsl(278, 64%, 32%)
HSVhsv(278, 78%, 53%)
CMYKcmyk(29.1%, 78.4%, 0%, 47.5%)
CIE-LABlab(26.83, 47.12, -45.31)
CIE-LCHlch(26.83, 65.37, 316.12°)
OKLaboklab(39.04% 0.1047 -0.1286)
OKLCHoklch(39.04% 0.166 309.2)
XYZxyz(9.4609, 5.0330, 23.0227)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D86 #44861D
analogous
#2A1D86 #5F1D86 #861D79
triadic
#5F1D86 #865F1D #1D865F
tetradic
#5F1D86 #862A1D #44861D #1D7986
square
#5F1D86 #862A1D #44861D #1D7986
split-complementary
#5F1D86 #79861D #1D862A
monochromatic
#180721 #3B1254 #5F1D86 #8328B8 #A146D7

Accessibility & contrast

On white

10.47
#5F1D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5F1D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D86
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D86#FFFFFF#000000##FFFFFF
##5F1D861.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#593751
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f1d86;
/* rgb */ color: rgb(95, 29, 134);
/* oklch */ color: oklch(39.0% 0.166 309.2);
Tailwind
colors: {
  custom: {
    50: '#9161aa',
    500: '#5f1d86',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d86;
$custom-light: #9161aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d86",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 277.714,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39041,
    "c": 0.16584,
    "h": 309.2
  },
  "luminance": 0.05033
}

Semantic roles & 50–950 ramp

primary
#5F1D86
secondary
#71B946
accent
#E7407E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1D86

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

Preview Lab → · Contrast checker → · Palette generator →

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