#5F1577#5F1577

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

Color values

HEX#5F1577
RGBrgb(95, 21, 119)
HSLhsl(285, 70%, 27%)
HSVhsv(285, 82%, 47%)
CMYKcmyk(20.2%, 82.4%, 0%, 53.3%)
CIE-LABlab(24.64, 46.79, -39.37)
CIE-LCHlch(24.64, 61.14, 319.92°)
OKLaboklab(37.14% 0.1149 -0.1111)
OKLCHoklch(37.14% 0.16 316)
XYZxyz(8.3167, 4.3015, 17.8414)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1577 #2D7715
analogous
#2E1577 #5F1577 #77155E
triadic
#5F1577 #775F15 #15775F
tetradic
#5F1577 #772E15 #2D7715 #155E77
square
#5F1577 #772E15 #2D7715 #155E77
split-complementary
#5F1577 #5E7715 #15772E
monochromatic
#15051A #350C43 #5F1577 #891EAB #AF2DDA

Accessibility & contrast

On white

11.29
#5F1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1577
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1577#FFFFFF#000000##FFFFFF
##5F15771.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#133C75
Tritanopia (blue-blind)
#5D2C46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1577;
/* rgb */ color: rgb(95, 21, 119);
/* oklch */ color: oklch(37.1% 0.160 316.0);
Tailwind
colors: {
  custom: {
    50: '#905d9f',
    500: '#5f1577',
    950: '#000000',
  },
}
SCSS
$custom: #5f1577;
$custom-light: #905d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1577",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 285.306,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.37138,
    "c": 0.15983,
    "h": 316
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#5F1577
secondary
#57AD3B
accent
#ED3B67
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1577

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

Preview Lab → · Contrast checker → · Palette generator →

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