#5F1567#5F1567

#5F1567 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.145 H 323.6°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#5F1567
RGBrgb(95, 21, 103)
HSLhsl(294, 66%, 24%)
HSVhsv(294, 80%, 40%)
CMYKcmyk(7.8%, 79.6%, 0%, 59.6%)
CIE-LABlab(23.50, 43.57, -30.88)
CIE-LCHlch(23.50, 53.40, 324.68°)
OKLaboklab(35.97% 0.1171 -0.0862)
OKLCHoklch(35.97% 0.145 323.6)
XYZxyz(7.4354, 3.9490, 13.1999)
Luminance0.0395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1567 #1D6715
analogous
#361567 #5F1567 #671546
triadic
#5F1567 #675F15 #15675F
tetradic
#5F1567 #673615 #1D6715 #154667
square
#5F1567 #673615 #1D6715 #154667
split-complementary
#5F1567 #466715 #156736
monochromatic
#170519 #300B34 #5F1567 #8E1F9A #BD2ACD

Accessibility & contrast

On white

11.73
#5F1567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1567
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1567#FFFFFF#000000##FFFFFF
##5F15671.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003269
Deuteranopia (green-blind)
#243B65
Tritanopia (blue-blind)
#61243D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1567;
/* rgb */ color: rgb(95, 21, 103);
/* oklch */ color: oklch(36.0% 0.145 323.6);
Tailwind
colors: {
  custom: {
    50: '#8f5c93',
    500: '#5f1567',
    950: '#000000',
  },
}
SCSS
$custom: #5f1567;
$custom-light: #8f5c93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1567",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 294.146,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35968,
    "c": 0.14537,
    "h": 323.6
  },
  "luminance": 0.03948
}

Semantic roles & 50–950 ramp

primary
#5F1567
secondary
#449E3A
accent
#E93F4F
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1567

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

Preview Lab → · Contrast checker → · Palette generator →

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