#5F1686#5F1686

#5F1686 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.173 H 309.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5F1686
RGBrgb(95, 22, 134)
HSLhsl(279, 72%, 31%)
HSVhsv(279, 84%, 53%)
CMYKcmyk(29.1%, 83.6%, 0%, 47.5%)
CIE-LABlab(25.95, 49.67, -46.74)
CIE-LCHlch(25.95, 68.21, 316.74°)
OKLaboklab(38.42% 0.1107 -0.1327)
OKLCHoklch(38.42% 0.173 309.8)
XYZxyz(9.3084, 4.7281, 22.9719)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1686 #3D8616
analogous
#271686 #5F1686 #861675
triadic
#5F1686 #865F16 #16865F
tetradic
#5F1686 #862716 #3D8616 #167586
square
#5F1686 #862716 #3D8616 #167586
split-complementary
#5F1686 #758616 #168627
monochromatic
#14051D #3A0D51 #5F1686 #841FBB #A438DE

Accessibility & contrast

On white

10.79
#5F1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1686
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1686#FFFFFF#000000##FFFFFF
##5F16861.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#59334F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1686;
/* rgb */ color: rgb(95, 22, 134);
/* oklch */ color: oklch(38.4% 0.173 309.8);
Tailwind
colors: {
  custom: {
    50: '#915eaa',
    500: '#5f1686',
    950: '#000000',
  },
}
SCSS
$custom: #5f1686;
$custom-light: #915eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1686",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 279.107,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38423,
    "c": 0.17285,
    "h": 309.8
  },
  "luminance": 0.04728
}

Semantic roles & 50–950 ramp

primary
#5F1686
secondary
#69BA3E
accent
#EF3978
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1686

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

Preview Lab → · Contrast checker → · Palette generator →

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