#5F1242#5F1242

#5F1242 is a dark, vivid pink. Relative luminance 0.033; OKLCH L 33.5% C 0.120 H 347.4°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#5F1242
RGBrgb(95, 18, 66)
HSLhsl(323, 68%, 22%)
HSVhsv(323, 81%, 37%)
CMYKcmyk(0%, 81.1%, 30.5%, 62.7%)
CIE-LABlab(21.05, 38.47, -9.91)
CIE-LCHlch(21.05, 39.73, 345.55°)
OKLaboklab(33.53% 0.1172 -0.0261)
OKLCHoklch(33.53% 0.12 347.4)
XYZxyz(5.9193, 3.2595, 5.4706)
Luminance0.0326 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1242 #125F2F
analogous
#56125F #5F1242 #5F121C
triadic
#5F1242 #425F12 #12425F
tetradic
#5F1242 #5F5612 #125F2F #121C5F
square
#5F1242 #5F5612 #125F2F #121C5F
split-complementary
#5F1242 #1C5F12 #125F56
monochromatic
#1A0512 #2C081E #5F1242 #921C66 #C62589

Accessibility & contrast

On white

12.71
#5F1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1242
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1242#FFFFFF#000000##FFFFFF
##5F12421.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2A43
Deuteranopia (green-blind)
#343740
Tritanopia (blue-blind)
#660F28
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f1242;
/* rgb */ color: rgb(95, 18, 66);
/* oklch */ color: oklch(33.5% 0.120 347.4);
Tailwind
colors: {
  custom: {
    50: '#905976',
    500: '#5f1242',
    950: '#000000',
  },
}
SCSS
$custom: #5f1242;
$custom-light: #905976;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1242",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 322.597,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33535,
    "c": 0.12005,
    "h": 347.4
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#5F1242
secondary
#36975A
accent
#EB7E3D
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0408
muted
#7E797B

Preview Lab

Preview with #5F1242

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

Preview Lab → · Contrast checker → · Palette generator →

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