#5F1842#5F1842

#5F1842 is a dark, moderate pink. Relative luminance 0.035; OKLCH L 34.1% C 0.112 H 348.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#5F1842
RGBrgb(95, 24, 66)
HSLhsl(325, 60%, 23%)
HSVhsv(325, 75%, 37%)
CMYKcmyk(0%, 74.7%, 30.5%, 62.7%)
CIE-LABlab(21.87, 36.17, -8.67)
CIE-LCHlch(21.87, 37.19, 346.52°)
OKLaboklab(34.13% 0.11 -0.0228)
OKLCHoklch(34.13% 0.112 348.3)
XYZxyz(6.0296, 3.4802, 5.5074)
Luminance0.0348 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1842 #185F35
analogous
#58185F #5F1842 #5F181E
triadic
#5F1842 #425F18 #18425F
tetradic
#5F1842 #5F5818 #185F35 #181E5F
square
#5F1842 #5F5818 #185F35 #181E5F
split-complementary
#5F1842 #1E5F18 #185F58
monochromatic
#180611 #2E0C20 #5F1842 #902464 #C13186

Accessibility & contrast

On white

12.38
#5F1842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F1842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1842
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1842#FFFFFF#000000##FFFFFF
##5F18421.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222C43
Deuteranopia (green-blind)
#363940
Tritanopia (blue-blind)
#66152A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1842;
/* rgb */ color: rgb(95, 24, 66);
/* oklch */ color: oklch(34.1% 0.112 348.3);
Tailwind
colors: {
  custom: {
    50: '#8f5c76',
    500: '#5f1842',
    950: '#000000',
  },
}
SCSS
$custom: #5f1842;
$custom-light: #8f5c76;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1842",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 66
  },
  "hsl": {
    "h": 324.507,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34132,
    "c": 0.11233,
    "h": 348.3
  },
  "luminance": 0.0348
}

Semantic roles & 50–950 ramp

primary
#5F1842
secondary
#3D9561
accent
#E38545
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0408
muted
#7E797B

Preview Lab

Preview with #5F1842

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

Preview Lab → · Contrast checker → · Palette generator →

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