#5F1240#5F1240

#5F1240 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.4% C 0.119 H 349.0°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#5F1240
RGBrgb(95, 18, 64)
HSLhsl(324, 68%, 22%)
HSVhsv(324, 81%, 37%)
CMYKcmyk(0%, 81.1%, 32.6%, 62.7%)
CIE-LABlab(20.97, 38.20, -8.67)
CIE-LCHlch(20.97, 39.17, 347.22°)
OKLaboklab(33.44% 0.1167 -0.0227)
OKLCHoklch(33.44% 0.119 349)
XYZxyz(5.8613, 3.2364, 5.1655)
Luminance0.0324 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1240 #125F31
analogous
#58125F #5F1240 #5F1219
triadic
#5F1240 #405F12 #12405F
tetradic
#5F1240 #5F5812 #125F31 #12195F
square
#5F1240 #5F5812 #125F31 #12195F
split-complementary
#5F1240 #195F12 #125F58
monochromatic
#1A0511 #2C081D #5F1240 #921C63 #C62585

Accessibility & contrast

On white

12.75
#5F1240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5F1240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1240
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1240#FFFFFF#000000##FFFFFF
##5F12401.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2A41
Deuteranopia (green-blind)
#35373E
Tritanopia (blue-blind)
#660E27
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f1240;
/* rgb */ color: rgb(95, 18, 64);
/* oklch */ color: oklch(33.4% 0.119 349.0);
Tailwind
colors: {
  custom: {
    50: '#905974',
    500: '#5f1240',
    950: '#000000',
  },
}
SCSS
$custom: #5f1240;
$custom-light: #905974;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1240",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 324.156,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33442,
    "c": 0.11885,
    "h": 349
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#5F1240
secondary
#36975D
accent
#EB833D
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0408
muted
#7E797B

Preview Lab

Preview with #5F1240

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

Preview Lab → · Contrast checker → · Palette generator →

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