#5F1138#5F1138

#5F1138 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 33.0% C 0.116 H 355.3°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#5F1138
RGBrgb(95, 17, 56)
HSLhsl(330, 70%, 22%)
HSVhsv(330, 82%, 37%)
CMYKcmyk(0%, 82.1%, 41.1%, 62.7%)
CIE-LABlab(20.52, 37.55, -3.78)
CIE-LCHlch(20.52, 37.74, 354.25°)
OKLaboklab(33.01% 0.1154 -0.0095)
OKLCHoklch(33.01% 0.116 355.3)
XYZxyz(5.6340, 3.1200, 4.0462)
Luminance0.0312 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1138 #115F38
analogous
#5F115F #5F1138 #5F1111
triadic
#5F1138 #385F11 #11385F
tetradic
#5F1138 #5F5F11 #115F38 #11115F
square
#5F1138 #5F5F11 #115F38 #11115F
split-complementary
#5F1138 #115F11 #115F5F
monochromatic
#1A050F #2B0819 #5F1138 #931A57 #C72475

Accessibility & contrast

On white

12.93
#5F1138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5F1138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1138
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1138#FFFFFF#000000##FFFFFF
##5F11381.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212839
Deuteranopia (green-blind)
#373736
Tritanopia (blue-blind)
#670723
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5f1138;
/* rgb */ color: rgb(95, 17, 56);
/* oklch */ color: oklch(33.0% 0.116 355.3);
Tailwind
colors: {
  custom: {
    50: '#90586e',
    500: '#5f1138',
    950: '#000000',
  },
}
SCSS
$custom: #5f1138;
$custom-light: #90586e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1138",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 330,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33008,
    "c": 0.11576,
    "h": 355.3
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#5F1138
secondary
#349866
accent
#EC943B
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0407
muted
#7E797A

Preview Lab

Preview with #5F1138

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

Preview Lab → · Contrast checker → · Palette generator →

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