#5F1472#5F1472

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

Color values

HEX#5F1472
RGBrgb(95, 20, 114)
HSLhsl(288, 70%, 26%)
HSVhsv(288, 82%, 45%)
CMYKcmyk(16.7%, 82.5%, 0%, 55.3%)
CIE-LABlab(24.16, 46.09, -36.95)
CIE-LCHlch(24.16, 59.07, 321.28°)
OKLaboklab(36.68% 0.1167 -0.104)
OKLCHoklch(36.68% 0.156 318.3)
XYZxyz(8.0063, 4.1485, 16.2953)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1472 #277214
analogous
#301472 #5F1472 #721456
triadic
#5F1472 #725F14 #14725F
tetradic
#5F1472 #723014 #277214 #145672
square
#5F1472 #723014 #277214 #145672
split-complementary
#5F1472 #567214 #147230
monochromatic
#16051A #340B3E #5F1472 #8A1DA6 #B527D9

Accessibility & contrast

On white

11.48
#5F1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1472
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1472#FFFFFF#000000##FFFFFF
##5F14721.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#193C70
Tritanopia (blue-blind)
#5E2943
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1472;
/* rgb */ color: rgb(95, 20, 114);
/* oklch */ color: oklch(36.7% 0.156 318.3);
Tailwind
colors: {
  custom: {
    50: '#905c9b',
    500: '#5f1472',
    950: '#000000',
  },
}
SCSS
$custom: #5f1472;
$custom-light: #905c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1472",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 287.872,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36677,
    "c": 0.15627,
    "h": 318.3
  },
  "luminance": 0.04148
}

Semantic roles & 50–950 ramp

primary
#5F1472
secondary
#50A839
accent
#ED3B5F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1472

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

Preview Lab → · Contrast checker → · Palette generator →

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