#5F1552#5F1552

#5F1552 is a dark, vivid pink. Relative luminance 0.036; OKLCH L 34.6% C 0.128 H 336.1°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#5F1552
RGBrgb(95, 21, 82)
HSLhsl(311, 64%, 23%)
HSVhsv(311, 78%, 37%)
CMYKcmyk(0%, 77.9%, 13.7%, 62.7%)
CIE-LABlab(22.23, 39.81, -18.99)
CIE-LCHlch(22.23, 44.10, 334.50°)
OKLaboklab(34.64% 0.1167 -0.0518)
OKLCHoklch(34.64% 0.128 336.1)
XYZxyz(6.5106, 3.5790, 8.3289)
Luminance0.0358 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1552 #155F22
analogous
#47155F #5F1552 #5F152D
triadic
#5F1552 #525F15 #15525F
tetradic
#5F1552 #5F4715 #155F22 #152D5F
square
#5F1552 #5F4715 #155F22 #152D5F
split-complementary
#5F1552 #2D5F15 #155F47
monochromatic
#190616 #2D0A27 #5F1552 #91207D #C32BA9

Accessibility & contrast

On white

12.24
#5F1552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F1552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1552
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1552#FFFFFF#000000##FFFFFF
##5F15521.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162E54
Deuteranopia (green-blind)
#303950
Tritanopia (blue-blind)
#641A32
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1552;
/* rgb */ color: rgb(95, 21, 82);
/* oklch */ color: oklch(34.6% 0.128 336.1);
Tailwind
colors: {
  custom: {
    50: '#8f5b83',
    500: '#5f1552',
    950: '#000000',
  },
}
SCSS
$custom: #5f1552;
$custom-light: #8f5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1552",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 310.541,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34643,
    "c": 0.12768,
    "h": 336.1
  },
  "luminance": 0.03578
}

Semantic roles & 50–950 ramp

primary
#5F1552
secondary
#3A964A
accent
#E75E41
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1552

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

Preview Lab → · Contrast checker → · Palette generator →

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