#5F1238#5F1238

#5F1238 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.1% C 0.115 H 355.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#5F1238
RGBrgb(95, 18, 56)
HSLhsl(330, 68%, 22%)
HSVhsv(330, 81%, 37%)
CMYKcmyk(0%, 81.1%, 41.1%, 62.7%)
CIE-LABlab(20.64, 37.20, -3.59)
CIE-LCHlch(20.64, 37.37, 354.48°)
OKLaboklab(33.1% 0.1143 -0.009)
OKLCHoklch(33.1% 0.115 355.5)
XYZxyz(5.6498, 3.1517, 4.0514)
Luminance0.0315 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1238 #125F39
analogous
#5F125F #5F1238 #5F1312
triadic
#5F1238 #385F12 #12385F
tetradic
#5F1238 #5F5F12 #125F39 #13125F
square
#5F1238 #5F5F12 #125F39 #13125F
split-complementary
#5F1238 #125F13 #125F5F
monochromatic
#1A050F #2C081A #5F1238 #921C56 #C62575

Accessibility & contrast

On white

12.88
#5F1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5F1238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1238
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1238#FFFFFF#000000##FFFFFF
##5F12381.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222939
Deuteranopia (green-blind)
#373736
Tritanopia (blue-blind)
#670823
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f1238;
/* rgb */ color: rgb(95, 18, 56);
/* oklch */ color: oklch(33.1% 0.115 355.5);
Tailwind
colors: {
  custom: {
    50: '#90596e',
    500: '#5f1238',
    950: '#000000',
  },
}
SCSS
$custom: #5f1238;
$custom-light: #90596e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1238",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 330.39,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33098,
    "c": 0.11461,
    "h": 355.5
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#5F1238
secondary
#369767
accent
#EB953D
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0407
muted
#7E797A

Preview Lab

Preview with #5F1238

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

Preview Lab → · Contrast checker → · Palette generator →

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