#5F1376#5F1376

#5F1376 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.161 H 316.6°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#5F1376
RGBrgb(95, 19, 118)
HSLhsl(286, 72%, 27%)
HSVhsv(286, 84%, 46%)
CMYKcmyk(19.5%, 83.9%, 0%, 53.7%)
CIE-LABlab(24.34, 47.23, -39.21)
CIE-LCHlch(24.34, 61.39, 320.30°)
OKLaboklab(36.9% 0.1168 -0.1106)
OKLCHoklch(36.9% 0.161 316.6)
XYZxyz(8.2217, 4.2070, 17.5150)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1376 #2A7613
analogous
#2E1376 #5F1376 #76135C
triadic
#5F1376 #765F13 #13765F
tetradic
#5F1376 #762E13 #2A7613 #135C76
square
#5F1376 #762E13 #2A7613 #135C76
split-complementary
#5F1376 #5C7613 #13762E
monochromatic
#15041A #350B41 #5F1376 #891BAB #B227DC

Accessibility & contrast

On white

11.40
#5F1376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F1376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1376
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1376#FFFFFF#000000##FFFFFF
##5F13761.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#133C74
Tritanopia (blue-blind)
#5E2B45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1376;
/* rgb */ color: rgb(95, 19, 118);
/* oklch */ color: oklch(36.9% 0.161 316.6);
Tailwind
colors: {
  custom: {
    50: '#905c9e',
    500: '#5f1376',
    950: '#000000',
  },
}
SCSS
$custom: #5f1376;
$custom-light: #905c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1376",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 118
  },
  "hsl": {
    "h": 286.061,
    "s": 72.263,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36904,
    "c": 0.16084,
    "h": 316.6
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#5F1376
secondary
#53AC39
accent
#EF3963
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1376

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

Preview Lab → · Contrast checker → · Palette generator →

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