#5F1473#5F1473

#5F1473 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.157 H 317.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5F1473
RGBrgb(95, 20, 115)
HSLhsl(287, 70%, 26%)
HSVhsv(287, 83%, 45%)
CMYKcmyk(17.4%, 82.6%, 0%, 54.9%)
CIE-LABlab(24.23, 46.29, -37.47)
CIE-LCHlch(24.23, 59.56, 321.01°)
OKLaboklab(36.75% 0.1165 -0.1055)
OKLCHoklch(36.75% 0.157 317.8)
XYZxyz(8.0635, 4.1714, 16.5967)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1473 #287314
analogous
#301473 #5F1473 #731458
triadic
#5F1473 #735F14 #14735F
tetradic
#5F1473 #733014 #287314 #145873
square
#5F1473 #733014 #287314 #145873
split-complementary
#5F1473 #587314 #147330
monochromatic
#16051A #340B3F #5F1473 #8A1DA7 #B428DA

Accessibility & contrast

On white

11.45
#5F1473 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5F1473 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1473
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1473#FFFFFF#000000##FFFFFF
##5F14731.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#183C71
Tritanopia (blue-blind)
#5E2A44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1473;
/* rgb */ color: rgb(95, 20, 115);
/* oklch */ color: oklch(36.8% 0.157 317.8);
Tailwind
colors: {
  custom: {
    50: '#905c9c',
    500: '#5f1473',
    950: '#000000',
  },
}
SCSS
$custom: #5f1473;
$custom-light: #905c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1473",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 115
  },
  "hsl": {
    "h": 287.368,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36752,
    "c": 0.15717,
    "h": 317.8
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#5F1473
secondary
#51A93A
accent
#ED3B60
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1473

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

Preview Lab → · Contrast checker → · Palette generator →

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