#5F1040#5F1040

#5F1040 is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.3% C 0.121 H 348.7°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#5F1040
RGBrgb(95, 16, 64)
HSLhsl(324, 71%, 22%)
HSVhsv(324, 83%, 37%)
CMYKcmyk(0%, 83.2%, 32.6%, 62.7%)
CIE-LABlab(20.73, 38.88, -9.03)
CIE-LCHlch(20.73, 39.91, 346.93°)
OKLaboklab(33.27% 0.1188 -0.0237)
OKLCHoklch(33.27% 0.121 348.7)
XYZxyz(5.8303, 3.1743, 5.1552)
Luminance0.0317 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1040 #105F2F
analogous
#57105F #5F1040 #5F1019
triadic
#5F1040 #405F10 #10405F
tetradic
#5F1040 #5F5710 #105F2F #10195F
square
#5F1040 #5F5710 #105F2F #10195F
split-complementary
#5F1040 #195F10 #105F57
monochromatic
#1A0412 #2B071D #5F1040 #931963 #C82287

Accessibility & contrast

On white

12.85
#5F1040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5F1040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1040
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1040#FFFFFF#000000##FFFFFF
##5F10401.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2941
Deuteranopia (green-blind)
#34373E
Tritanopia (blue-blind)
#660B26
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f1040;
/* rgb */ color: rgb(95, 16, 64);
/* oklch */ color: oklch(33.3% 0.121 348.7);
Tailwind
colors: {
  custom: {
    50: '#905874',
    500: '#5f1040',
    950: '#000000',
  },
}
SCSS
$custom: #5f1040;
$custom-light: #905874;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1040",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 323.544,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33269,
    "c": 0.12112,
    "h": 348.7
  },
  "luminance": 0.03174
}

Semantic roles & 50–950 ramp

primary
#5F1040
secondary
#33985B
accent
#EE813A
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0408
muted
#7E797B

Preview Lab

Preview with #5F1040

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

Preview Lab → · Contrast checker → · Palette generator →

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