#5F1976#5F1976

#5F1976 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.155 H 316.1°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#5F1976
RGBrgb(95, 25, 118)
HSLhsl(285, 65%, 28%)
HSVhsv(285, 79%, 46%)
CMYKcmyk(19.5%, 78.8%, 0%, 53.7%)
CIE-LABlab(25.07, 45.15, -38.05)
CIE-LCHlch(25.07, 59.04, 319.88°)
OKLaboklab(37.41% 0.1115 -0.1072)
OKLCHoklch(37.41% 0.155 316.1)
XYZxyz(8.3365, 4.4365, 17.5532)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1976 #307619
analogous
#301976 #5F1976 #76195E
triadic
#5F1976 #765F19 #19765F
tetradic
#5F1976 #763019 #307619 #195E76
square
#5F1976 #763019 #307619 #195E76
split-complementary
#5F1976 #5E7619 #197630
monochromatic
#140519 #360E43 #5F1976 #8824A8 #AD35D4

Accessibility & contrast

On white

11.13
#5F1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5F1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1976
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1976#FFFFFF#000000##FFFFFF
##5F19761.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#183D74
Tritanopia (blue-blind)
#5D2E47
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1976;
/* rgb */ color: rgb(95, 25, 118);
/* oklch */ color: oklch(37.4% 0.155 316.1);
Tailwind
colors: {
  custom: {
    50: '#905e9e',
    500: '#5f1976',
    950: '#000000',
  },
}
SCSS
$custom: #5f1976;
$custom-light: #905e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1976",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 285.161,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37412,
    "c": 0.15468,
    "h": 316.1
  },
  "luminance": 0.04436
}

Semantic roles & 50–950 ramp

primary
#5F1976
secondary
#5AAB40
accent
#E84069
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1976

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

Preview Lab → · Contrast checker → · Palette generator →

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