#5F1840#5F1840

#5F1840 is a dark, moderate pink. Relative luminance 0.035; OKLCH L 34.0% C 0.111 H 350.0°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#5F1840
RGBrgb(95, 24, 64)
HSLhsl(326, 60%, 23%)
HSVhsv(326, 75%, 37%)
CMYKcmyk(0%, 74.7%, 32.6%, 62.7%)
CIE-LABlab(21.79, 35.89, -7.42)
CIE-LCHlch(21.79, 36.65, 348.32°)
OKLaboklab(34.04% 0.1094 -0.0193)
OKLCHoklch(34.04% 0.111 350)
XYZxyz(5.9717, 3.4570, 5.2023)
Luminance0.0346 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1840 #185F37
analogous
#5A185F #5F1840 #5F181C
triadic
#5F1840 #405F18 #18405F
tetradic
#5F1840 #5F5A18 #185F37 #181C5F
square
#5F1840 #5F5A18 #185F37 #181C5F
split-complementary
#5F1840 #1C5F18 #185F5A
monochromatic
#180610 #2E0C1F #5F1840 #902461 #C13182

Accessibility & contrast

On white

12.42
#5F1840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5F1840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1840
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1840#FFFFFF#000000##FFFFFF
##5F18401.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232C41
Deuteranopia (green-blind)
#37393E
Tritanopia (blue-blind)
#661429
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1840;
/* rgb */ color: rgb(95, 24, 64);
/* oklch */ color: oklch(34.0% 0.111 350.0);
Tailwind
colors: {
  custom: {
    50: '#905b74',
    500: '#5f1840',
    950: '#000000',
  },
}
SCSS
$custom: #5f1840;
$custom-light: #905b74;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1840",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 326.197,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34043,
    "c": 0.11114,
    "h": 350
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#5F1840
secondary
#3D9564
accent
#E38A45
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0408
muted
#7E797B

Preview Lab

Preview with #5F1840

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

Preview Lab → · Contrast checker → · Palette generator →

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