#5F1A42#5F1A42

#5F1A42 is a dark, moderate pink. Relative luminance 0.036; OKLCH L 34.4% C 0.109 H 348.7°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#5F1A42
RGBrgb(95, 26, 66)
HSLhsl(325, 57%, 24%)
HSVhsv(325, 73%, 37%)
CMYKcmyk(0%, 72.6%, 30.5%, 62.7%)
CIE-LABlab(22.18, 35.31, -8.20)
CIE-LCHlch(22.18, 36.25, 346.93°)
OKLaboklab(34.36% 0.1074 -0.0215)
OKLCHoklch(34.36% 0.109 348.7)
XYZxyz(6.0724, 3.5657, 5.5217)
Luminance0.0357 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A42 #1A5F37
analogous
#591A5F #5F1A42 #5F1A1F
triadic
#5F1A42 #425F1A #1A425F
tetradic
#5F1A42 #5F591A #1A5F37 #1A1F5F
square
#5F1A42 #5F591A #1A5F37 #1A1F5F
split-complementary
#5F1A42 #1F5F1A #1A5F59
monochromatic
#180711 #2F0D21 #5F1A42 #8F2763 #BF3485

Accessibility & contrast

On white

12.26
#5F1A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F1A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1A42
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A42#FFFFFF#000000##FFFFFF
##5F1A421.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232D43
Deuteranopia (green-blind)
#373940
Tritanopia (blue-blind)
#66172B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1a42;
/* rgb */ color: rgb(95, 26, 66);
/* oklch */ color: oklch(34.4% 0.109 348.7);
Tailwind
colors: {
  custom: {
    50: '#8f5c76',
    500: '#5f1a42',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a42;
$custom-light: #8f5c76;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a42",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 325.217,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34358,
    "c": 0.10948,
    "h": 348.7
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#5F1A42
secondary
#409564
accent
#E08848
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0408
muted
#7E797B

Preview Lab

Preview with #5F1A42

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

Preview Lab → · Contrast checker → · Palette generator →

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