#5F1F86#5F1F86

#5F1F86 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.164 H 308.9°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#5F1F86
RGBrgb(95, 31, 134)
HSLhsl(277, 62%, 32%)
HSVhsv(277, 77%, 53%)
CMYKcmyk(29.1%, 76.9%, 0%, 47.5%)
CIE-LABlab(27.11, 46.30, -44.84)
CIE-LCHlch(27.11, 64.46, 315.91°)
OKLaboklab(39.24% 0.1028 -0.1272)
OKLCHoklch(39.24% 0.164 308.9)
XYZxyz(9.5115, 5.1343, 23.0396)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F86 #46861F
analogous
#2C1F86 #5F1F86 #861F79
triadic
#5F1F86 #865F1F #1F865F
tetradic
#5F1F86 #862C1F #46861F #1F7986
square
#5F1F86 #862C1F #46861F #1F7986
split-complementary
#5F1F86 #79861F #1F862C
monochromatic
#190823 #3C1454 #5F1F86 #822AB8 #A14AD5

Accessibility & contrast

On white

10.36
#5F1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5F1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F86
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F86#FFFFFF#000000##FFFFFF
##5F1F861.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#004184
Tritanopia (blue-blind)
#593851
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1f86;
/* rgb */ color: rgb(95, 31, 134);
/* oklch */ color: oklch(39.2% 0.164 308.9);
Tailwind
colors: {
  custom: {
    50: '#9162aa',
    500: '#5f1f86',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f86;
$custom-light: #9162aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f86",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 277.282,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39242,
    "c": 0.16359,
    "h": 308.9
  },
  "luminance": 0.05134
}

Semantic roles & 50–950 ramp

primary
#5F1F86
secondary
#73B849
accent
#E54280
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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