#5F1786#5F1786

#5F1786 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.172 H 309.7°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5F1786
RGBrgb(95, 23, 134)
HSLhsl(279, 71%, 31%)
HSVhsv(279, 83%, 53%)
CMYKcmyk(29.1%, 82.8%, 0%, 47.5%)
CIE-LABlab(26.06, 49.34, -46.56)
CIE-LCHlch(26.06, 67.83, 316.66°)
OKLaboklab(38.5% 0.1099 -0.1322)
OKLCHoklch(38.5% 0.172 309.7)
XYZxyz(9.3279, 4.7671, 22.9784)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1786 #3E8617
analogous
#271786 #5F1786 #861775
triadic
#5F1786 #865F17 #17865F
tetradic
#5F1786 #862717 #3E8617 #177586
square
#5F1786 #862717 #3E8617 #177586
split-complementary
#5F1786 #758617 #178627
monochromatic
#15051E #3A0E52 #5F1786 #8420BA #A43ADD

Accessibility & contrast

On white

10.75
#5F1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1786
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1786#FFFFFF#000000##FFFFFF
##5F17861.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#59344F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1786;
/* rgb */ color: rgb(95, 23, 134);
/* oklch */ color: oklch(38.5% 0.172 309.7);
Tailwind
colors: {
  custom: {
    50: '#915eaa',
    500: '#5f1786',
    950: '#000000',
  },
}
SCSS
$custom: #5f1786;
$custom-light: #915eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1786",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 278.919,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38503,
    "c": 0.17193,
    "h": 309.7
  },
  "luminance": 0.04767
}

Semantic roles & 50–950 ramp

primary
#5F1786
secondary
#6ABA3F
accent
#ED3A79
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1786

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

Preview Lab → · Contrast checker → · Palette generator →

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