#5F1566#5F1566

#5F1566 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.144 H 324.2°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#5F1566
RGBrgb(95, 21, 102)
HSLhsl(295, 66%, 24%)
HSVhsv(295, 79%, 40%)
CMYKcmyk(6.9%, 79.4%, 0%, 60%)
CIE-LABlab(23.44, 43.38, -30.33)
CIE-LCHlch(23.44, 52.93, 325.04°)
OKLaboklab(35.9% 0.1171 -0.0846)
OKLCHoklch(35.9% 0.144 324.2)
XYZxyz(7.3856, 3.9290, 12.9372)
Luminance0.0393 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1566 #1C6615
analogous
#371566 #5F1566 #661545
triadic
#5F1566 #665F15 #15665F
tetradic
#5F1566 #663715 #1C6615 #154566
square
#5F1566 #663715 #1C6615 #154566
split-complementary
#5F1566 #456615 #156637
monochromatic
#180519 #300B33 #5F1566 #8E1F99 #BE2ACC

Accessibility & contrast

On white

11.76
#5F1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5F1566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1566
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1566#FFFFFF#000000##FFFFFF
##5F15661.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003268
Deuteranopia (green-blind)
#253B64
Tritanopia (blue-blind)
#61243D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1566;
/* rgb */ color: rgb(95, 21, 102);
/* oklch */ color: oklch(35.9% 0.144 324.2);
Tailwind
colors: {
  custom: {
    50: '#8f5c92',
    500: '#5f1566',
    950: '#000000',
  },
}
SCSS
$custom: #5f1566;
$custom-light: #8f5c92;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1566",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 294.815,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35899,
    "c": 0.14449,
    "h": 324.2
  },
  "luminance": 0.03929
}

Semantic roles & 50–950 ramp

primary
#5F1566
secondary
#429D3A
accent
#E93F4E
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1566

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

Preview Lab → · Contrast checker → · Palette generator →

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