#5F1886#5F1886

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

Color values

HEX#5F1886
RGBrgb(95, 24, 134)
HSLhsl(279, 70%, 31%)
HSVhsv(279, 82%, 53%)
CMYKcmyk(29.1%, 82.1%, 0%, 47.5%)
CIE-LABlab(26.18, 48.99, -46.36)
CIE-LCHlch(26.18, 67.45, 316.58°)
OKLaboklab(38.59% 0.1091 -0.1316)
OKLCHoklch(38.59% 0.171 309.7)
XYZxyz(9.3482, 4.8076, 22.9851)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1886 #3F8618
analogous
#281886 #5F1886 #861876
triadic
#5F1886 #865F18 #18865F
tetradic
#5F1886 #862818 #3F8618 #187686
square
#5F1886 #862818 #3F8618 #187686
split-complementary
#5F1886 #768618 #188628
monochromatic
#15051E #3A0F52 #5F1886 #8421BA #A33CDC

Accessibility & contrast

On white

10.71
#5F1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5F1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1886
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1886#FFFFFF#000000##FFFFFF
##5F18861.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1886;
/* rgb */ color: rgb(95, 24, 134);
/* oklch */ color: oklch(38.6% 0.171 309.7);
Tailwind
colors: {
  custom: {
    50: '#915faa',
    500: '#5f1886',
    950: '#000000',
  },
}
SCSS
$custom: #5f1886;
$custom-light: #915faa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1886",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 278.727,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38586,
    "c": 0.17099,
    "h": 309.7
  },
  "luminance": 0.04807
}

Semantic roles & 50–950 ramp

primary
#5F1886
secondary
#6BBA40
accent
#EC3B7A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1886

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

Preview Lab → · Contrast checker → · Palette generator →

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