#5F1373#5F1373

#5F1373 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.158 H 317.9°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#5F1373
RGBrgb(95, 19, 115)
HSLhsl(288, 72%, 26%)
HSVhsv(288, 83%, 45%)
CMYKcmyk(17.4%, 83.5%, 0%, 54.9%)
CIE-LABlab(24.12, 46.62, -37.65)
CIE-LCHlch(24.12, 59.93, 321.07°)
OKLaboklab(36.67% 0.1173 -0.106)
OKLCHoklch(36.67% 0.158 317.9)
XYZxyz(8.0463, 4.1368, 16.5910)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1373 #277313
analogous
#2F1373 #5F1373 #731357
triadic
#5F1373 #735F13 #13735F
tetradic
#5F1373 #732F13 #277313 #135773
square
#5F1373 #732F13 #277313 #135773
split-complementary
#5F1373 #577313 #13732F
monochromatic
#16041A #340A3E #5F1373 #8A1CA8 #B525DB

Accessibility & contrast

On white

11.49
#5F1373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1373
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1373#FFFFFF#000000##FFFFFF
##5F13731.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#173C71
Tritanopia (blue-blind)
#5E2944
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1373;
/* rgb */ color: rgb(95, 19, 115);
/* oklch */ color: oklch(36.7% 0.158 317.9);
Tailwind
colors: {
  custom: {
    50: '#905c9c',
    500: '#5f1373',
    950: '#000000',
  },
}
SCSS
$custom: #5f1373;
$custom-light: #905c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1373",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 287.5,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36674,
    "c": 0.15813,
    "h": 317.9
  },
  "luminance": 0.04136
}

Semantic roles & 50–950 ramp

primary
#5F1373
secondary
#50AA38
accent
#EE395F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1373

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

Preview Lab → · Contrast checker → · Palette generator →

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