#5F1576#5F1576

#5F1576 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.159 H 316.4°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5F1576
RGBrgb(95, 21, 118)
HSLhsl(286, 70%, 27%)
HSVhsv(286, 82%, 46%)
CMYKcmyk(19.5%, 82.2%, 0%, 53.7%)
CIE-LABlab(24.57, 46.58, -38.85)
CIE-LCHlch(24.57, 60.65, 320.17°)
OKLaboklab(37.06% 0.1151 -0.1095)
OKLCHoklch(37.06% 0.159 316.4)
XYZxyz(8.2570, 4.2776, 17.5267)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1576 #2C7615
analogous
#2E1576 #5F1576 #76155D
triadic
#5F1576 #765F15 #15765F
tetradic
#5F1576 #762E15 #2C7615 #155D76
square
#5F1576 #762E15 #2C7615 #155D76
split-complementary
#5F1576 #5D7615 #15762E
monochromatic
#15051A #350C42 #5F1576 #891EAA #B02CD9

Accessibility & contrast

On white

11.32
#5F1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5F1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1576
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1576#FFFFFF#000000##FFFFFF
##5F15761.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#143C74
Tritanopia (blue-blind)
#5E2C46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1576;
/* rgb */ color: rgb(95, 21, 118);
/* oklch */ color: oklch(37.1% 0.159 316.4);
Tailwind
colors: {
  custom: {
    50: '#905d9e',
    500: '#5f1576',
    950: '#000000',
  },
}
SCSS
$custom: #5f1576;
$custom-light: #905d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1576",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 285.773,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.37062,
    "c": 0.15891,
    "h": 316.4
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#5F1576
secondary
#56AC3B
accent
#ED3B65
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1576

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

Preview Lab → · Contrast checker → · Palette generator →

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