#5F1F4E#5F1F4E

#5F1F4E is a dark, moderate pink. Relative luminance 0.040; OKLCH L 35.5% C 0.110 H 339.6°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#5F1F4E
RGBrgb(95, 31, 78)
HSLhsl(316, 51%, 25%)
HSVhsv(316, 67%, 37%)
CMYKcmyk(0%, 67.4%, 17.9%, 62.7%)
CIE-LABlab(23.55, 34.88, -14.24)
CIE-LCHlch(23.55, 37.67, 337.78°)
OKLaboklab(35.54% 0.1033 -0.0384)
OKLCHoklch(35.54% 0.11 339.6)
XYZxyz(6.5846, 3.9635, 7.6245)
Luminance0.0396 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F4E #1F5F30
analogous
#501F5F #5F1F4E #5F1F2E
triadic
#5F1F4E #4E5F1F #1F4E5F
tetradic
#5F1F4E #5F501F #1F5F30 #1F2E5F
square
#5F1F4E #5F501F #1F5F30 #1F2E5F
split-complementary
#5F1F4E #2E5F1F #1F5F50
monochromatic
#170813 #311028 #5F1F4E #8D2E74 #BB3D9A

Accessibility & contrast

On white

11.71
#5F1F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5F1F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F4E
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F4E#FFFFFF#000000##FFFFFF
##5F1F4E1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22324F
Deuteranopia (green-blind)
#363C4C
Tritanopia (blue-blind)
#652133
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1f4e;
/* rgb */ color: rgb(95, 31, 78);
/* oklch */ color: oklch(35.5% 0.110 339.6);
Tailwind
colors: {
  custom: {
    50: '#8f5f7f',
    500: '#5f1f4e',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f4e;
$custom-light: #8f5f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f4e",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 315.938,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35539,
    "c": 0.11022,
    "h": 339.6
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#5F1F4E
secondary
#46945B
accent
#DA734E
background
#F9F5F7
surface
#F1EAEE
border
#CBC6C9
text
#0D050A
muted
#7E797C

Preview Lab

Preview with #5F1F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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