#5F1981#5F1981

#5F1981 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.3% C 0.165 H 311.5°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5F1981
RGBrgb(95, 25, 129)
HSLhsl(280, 68%, 30%)
HSVhsv(280, 81%, 51%)
CMYKcmyk(26.4%, 80.6%, 0%, 49.4%)
CIE-LABlab(25.90, 47.53, -43.67)
CIE-LCHlch(25.90, 64.54, 317.42°)
OKLaboklab(38.27% 0.1095 -0.1237)
OKLCHoklch(38.27% 0.165 311.5)
XYZxyz(9.0286, 4.7134, 21.1988)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1981 #3B8119
analogous
#2B1981 #5F1981 #81196F
triadic
#5F1981 #815F19 #19815F
tetradic
#5F1981 #812B19 #3B8119 #196F81
square
#5F1981 #812B19 #3B8119 #196F81
split-complementary
#5F1981 #6F8119 #19812B
monochromatic
#13051A #390F4E #5F1981 #8523B4 #A63BD9

Accessibility & contrast

On white

10.81
#5F1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5F1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1981
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1981#FFFFFF#000000##FFFFFF
##5F19811.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#013F7F
Tritanopia (blue-blind)
#5B324D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1981;
/* rgb */ color: rgb(95, 25, 129);
/* oklch */ color: oklch(38.3% 0.165 311.5);
Tailwind
colors: {
  custom: {
    50: '#915fa6',
    500: '#5f1981',
    950: '#000000',
  },
}
SCSS
$custom: #5f1981;
$custom-light: #915fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1981",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 280.385,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38266,
    "c": 0.1652,
    "h": 311.5
  },
  "luminance": 0.04713
}

Semantic roles & 50–950 ramp

primary
#5F1981
secondary
#67B541
accent
#EA3D76
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1981

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

Preview Lab → · Contrast checker → · Palette generator →

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