#5F1D87#5F1D87

#5F1D87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.167 H 308.8°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5F1D87
RGBrgb(95, 29, 135)
HSLhsl(277, 65%, 32%)
HSVhsv(277, 79%, 53%)
CMYKcmyk(29.6%, 78.5%, 0%, 47.1%)
CIE-LABlab(26.91, 47.34, -45.80)
CIE-LCHlch(26.91, 65.88, 315.95°)
OKLaboklab(39.12% 0.1045 -0.13)
OKLCHoklch(39.12% 0.167 308.8)
XYZxyz(9.5310, 5.0611, 23.3918)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D87 #45871D
analogous
#2A1D87 #5F1D87 #871D7A
triadic
#5F1D87 #875F1D #1D875F
tetradic
#5F1D87 #872A1D #45871D #1D7A87
square
#5F1D87 #872A1D #45871D #1D7A87
split-complementary
#5F1D87 #7A871D #1D872A
monochromatic
#180722 #3C1255 #5F1D87 #8228B9 #A147D7

Accessibility & contrast

On white

10.44
#5F1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5F1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D87
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D87#FFFFFF#000000##FFFFFF
##5F1D871.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#593751
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1d87;
/* rgb */ color: rgb(95, 29, 135);
/* oklch */ color: oklch(39.1% 0.167 308.8);
Tailwind
colors: {
  custom: {
    50: '#9161ab',
    500: '#5f1d87',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d87;
$custom-light: #9161ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d87",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 277.358,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39122,
    "c": 0.16683,
    "h": 308.8
  },
  "luminance": 0.05061
}

Semantic roles & 50–950 ramp

primary
#5F1D87
secondary
#72B946
accent
#E8407F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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