#5F1381#5F1381

#5F1381 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.8% C 0.171 H 312.0°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5F1381
RGBrgb(95, 19, 129)
HSLhsl(281, 74%, 29%)
HSVhsv(281, 85%, 51%)
CMYKcmyk(26.4%, 85.3%, 0%, 49.4%)
CIE-LABlab(25.21, 49.54, -44.79)
CIE-LCHlch(25.21, 66.79, 317.88°)
OKLaboklab(37.78% 0.1143 -0.127)
OKLCHoklch(37.78% 0.171 312)
XYZxyz(8.9139, 4.4839, 21.1605)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1381 #358113
analogous
#281381 #5F1381 #81136C
triadic
#5F1381 #815F13 #13815F
tetradic
#5F1381 #812813 #358113 #136C81
square
#5F1381 #812813 #358113 #136C81
split-complementary
#5F1381 #6C8113 #138128
monochromatic
#14041B #380B4C #5F1381 #861BB6 #A92EE0

Accessibility & contrast

On white

11.07
#5F1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5F1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1381
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1381#FFFFFF#000000##FFFFFF
##5F13811.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#5B304C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1381;
/* rgb */ color: rgb(95, 19, 129);
/* oklch */ color: oklch(37.8% 0.171 312.0);
Tailwind
colors: {
  custom: {
    50: '#915da6',
    500: '#5f1381',
    950: '#000000',
  },
}
SCSS
$custom: #5f1381;
$custom-light: #915da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1381",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 281.455,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37782,
    "c": 0.17083,
    "h": 312
  },
  "luminance": 0.04484
}

Semantic roles & 50–950 ramp

primary
#5F1381
secondary
#60B63A
accent
#F13770
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1381

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

Preview Lab → · Contrast checker → · Palette generator →

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