#5F1847#5F1847

#5F1847 is a dark, moderate pink. Relative luminance 0.035; OKLCH L 34.4% C 0.116 H 344.3°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#5F1847
RGBrgb(95, 24, 71)
HSLhsl(320, 60%, 23%)
HSVhsv(320, 75%, 37%)
CMYKcmyk(0%, 74.7%, 25.3%, 62.7%)
CIE-LABlab(22.09, 36.90, -11.75)
CIE-LCHlch(22.09, 38.72, 342.34°)
OKLaboklab(34.37% 0.1113 -0.0313)
OKLCHoklch(34.37% 0.116 344.3)
XYZxyz(6.1835, 3.5417, 6.3180)
Luminance0.0354 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1847 #185F30
analogous
#53185F #5F1847 #5F1823
triadic
#5F1847 #475F18 #18475F
tetradic
#5F1847 #5F5318 #185F30 #18235F
square
#5F1847 #5F5318 #185F30 #18235F
split-complementary
#5F1847 #235F18 #185F53
monochromatic
#180612 #2E0C22 #5F1847 #90246C #C13190

Accessibility & contrast

On white

12.29
#5F1847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1847
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1847#FFFFFF#000000##FFFFFF
##5F18471.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202D48
Deuteranopia (green-blind)
#353945
Tritanopia (blue-blind)
#66172D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1847;
/* rgb */ color: rgb(95, 24, 71);
/* oklch */ color: oklch(34.4% 0.116 344.3);
Tailwind
colors: {
  custom: {
    50: '#8f5c7a',
    500: '#5f1847',
    950: '#000000',
  },
}
SCSS
$custom: #5f1847;
$custom-light: #8f5c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1847",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 71
  },
  "hsl": {
    "h": 320.282,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34367,
    "c": 0.11559,
    "h": 344.3
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#5F1847
secondary
#3D955B
accent
#E37A45
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5F1847

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

Preview Lab → · Contrast checker → · Palette generator →

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