#5F1556#5F1556

#5F1556 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.131 H 333.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#5F1556
RGBrgb(95, 21, 86)
HSLhsl(307, 64%, 23%)
HSVhsv(307, 78%, 37%)
CMYKcmyk(0%, 77.9%, 9.5%, 62.7%)
CIE-LABlab(22.45, 40.48, -21.32)
CIE-LCHlch(22.45, 45.75, 332.22°)
OKLaboklab(34.88% 0.1171 -0.0585)
OKLCHoklch(34.88% 0.131 333.5)
XYZxyz(6.6672, 3.6417, 9.1541)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1556 #155F1E
analogous
#43155F #5F1556 #5F1531
triadic
#5F1556 #565F15 #15565F
tetradic
#5F1556 #5F4315 #155F1E #15315F
square
#5F1556 #5F4315 #155F1E #15315F
split-complementary
#5F1556 #315F15 #155F43
monochromatic
#190617 #2D0A29 #5F1556 #912083 #C32BB1

Accessibility & contrast

On white

12.15
#5F1556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5F1556 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1556
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1556#FFFFFF#000000##FFFFFF
##5F15561.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122F58
Deuteranopia (green-blind)
#2E3954
Tritanopia (blue-blind)
#641C34
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1556;
/* rgb */ color: rgb(95, 21, 86);
/* oklch */ color: oklch(34.9% 0.131 333.5);
Tailwind
colors: {
  custom: {
    50: '#8f5b86',
    500: '#5f1556',
    950: '#000000',
  },
}
SCSS
$custom: #5f1556;
$custom-light: #8f5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1556",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 86
  },
  "hsl": {
    "h": 307.297,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34875,
    "c": 0.13087,
    "h": 333.5
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#5F1556
secondary
#3A9645
accent
#E75541
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1556

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

Preview Lab → · Contrast checker → · Palette generator →

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