#5F1342#5F1342

#5F1342 is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.6% C 0.119 H 347.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#5F1342
RGBrgb(95, 19, 66)
HSLhsl(323, 67%, 22%)
HSVhsv(323, 80%, 37%)
CMYKcmyk(0%, 80%, 30.5%, 62.7%)
CIE-LABlab(21.18, 38.12, -9.72)
CIE-LCHlch(21.18, 39.34, 345.69°)
OKLaboklab(33.63% 0.1161 -0.0256)
OKLCHoklch(33.63% 0.119 347.5)
XYZxyz(5.9358, 3.2927, 5.4762)
Luminance0.0329 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1342 #135F30
analogous
#56135F #5F1342 #5F131C
triadic
#5F1342 #425F13 #13425F
tetradic
#5F1342 #5F5613 #135F30 #131C5F
square
#5F1342 #5F5613 #135F30 #131C5F
split-complementary
#5F1342 #1C5F13 #135F56
monochromatic
#1A0512 #2C091F #5F1342 #921D65 #C52789

Accessibility & contrast

On white

12.66
#5F1342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5F1342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1342
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1342#FFFFFF#000000##FFFFFF
##5F13421.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2A43
Deuteranopia (green-blind)
#353840
Tritanopia (blue-blind)
#661028
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f1342;
/* rgb */ color: rgb(95, 19, 66);
/* oklch */ color: oklch(33.6% 0.119 347.5);
Tailwind
colors: {
  custom: {
    50: '#905976',
    500: '#5f1342',
    950: '#000000',
  },
}
SCSS
$custom: #5f1342;
$custom-light: #905976;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1342",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 322.895,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33626,
    "c": 0.11887,
    "h": 347.5
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#5F1342
secondary
#37975C
accent
#EA803E
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0408
muted
#7E797B

Preview Lab

Preview with #5F1342

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

Preview Lab → · Contrast checker → · Palette generator →

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