#5F1471#5F1471

#5F1471 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.155 H 318.8°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#5F1471
RGBrgb(95, 20, 113)
HSLhsl(288, 70%, 26%)
HSVhsv(288, 82%, 44%)
CMYKcmyk(15.9%, 82.3%, 0%, 55.7%)
CIE-LABlab(24.08, 45.89, -36.42)
CIE-LCHlch(24.08, 58.59, 321.56°)
OKLaboklab(36.6% 0.1168 -0.1024)
OKLCHoklch(36.6% 0.155 318.8)
XYZxyz(7.9497, 4.1259, 15.9972)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1471 #267114
analogous
#301471 #5F1471 #711454
triadic
#5F1471 #715F14 #14715F
tetradic
#5F1471 #713014 #267114 #145471
square
#5F1471 #713014 #267114 #145471
split-complementary
#5F1471 #547114 #147130
monochromatic
#16051A #330B3D #5F1471 #8B1DA5 #B627D9

Accessibility & contrast

On white

11.51
#5F1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1471
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1471#FFFFFF#000000##FFFFFF
##5F14711.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#1A3C6F
Tritanopia (blue-blind)
#5F2943
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1471;
/* rgb */ color: rgb(95, 20, 113);
/* oklch */ color: oklch(36.6% 0.155 318.8);
Tailwind
colors: {
  custom: {
    50: '#905c9a',
    500: '#5f1471',
    950: '#000000',
  },
}
SCSS
$custom: #5f1471;
$custom-light: #905c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1471",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 288.387,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36602,
    "c": 0.15536,
    "h": 318.8
  },
  "luminance": 0.04125
}

Semantic roles & 50–950 ramp

primary
#5F1471
secondary
#4FA739
accent
#ED3B5D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1471

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

Preview Lab → · Contrast checker → · Palette generator →

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