#5F1986#5F1986

#5F1986 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.170 H 309.6°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#5F1986
RGBrgb(95, 25, 134)
HSLhsl(279, 69%, 31%)
HSVhsv(279, 81%, 53%)
CMYKcmyk(29.1%, 81.3%, 0%, 47.5%)
CIE-LABlab(26.30, 48.64, -46.16)
CIE-LCHlch(26.30, 67.06, 316.49°)
OKLaboklab(38.67% 0.1083 -0.1311)
OKLCHoklch(38.67% 0.17 309.6)
XYZxyz(9.3692, 4.8496, 22.9921)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1986 #408619
analogous
#281986 #5F1986 #861976
triadic
#5F1986 #865F19 #19865F
tetradic
#5F1986 #862819 #408619 #197686
square
#5F1986 #862819 #408619 #197686
split-complementary
#5F1986 #768619 #198628
monochromatic
#16061F #3A0F52 #5F1986 #8423BA #A33EDB

Accessibility & contrast

On white

10.66
#5F1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5F1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1986
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1986#FFFFFF#000000##FFFFFF
##5F19861.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1986;
/* rgb */ color: rgb(95, 25, 134);
/* oklch */ color: oklch(38.7% 0.170 309.6);
Tailwind
colors: {
  custom: {
    50: '#915faa',
    500: '#5f1986',
    950: '#000000',
  },
}
SCSS
$custom: #5f1986;
$custom-light: #915faa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1986",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 278.532,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38672,
    "c": 0.17001,
    "h": 309.6
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

primary
#5F1986
secondary
#6CBA41
accent
#EB3C7B
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1986

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

Preview Lab → · Contrast checker → · Palette generator →

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