#5F1231#5F1231

#5F1231 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.8% C 0.112 H 1.5°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#5F1231
RGBrgb(95, 18, 49)
HSLhsl(336, 68%, 22%)
HSVhsv(336, 81%, 37%)
CMYKcmyk(0%, 81.1%, 48.4%, 62.7%)
CIE-LABlab(20.39, 36.42, 0.95)
CIE-LCHlch(20.39, 36.43, 1.49°)
OKLaboklab(32.84% 0.1117 0.0029)
OKLCHoklch(32.84% 0.112 1.5)
XYZxyz(5.4904, 3.0880, 3.2121)
Luminance0.0309 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1231 #125F40
analogous
#5F1258 #5F1231 #5F1912
triadic
#5F1231 #315F12 #12315F
tetradic
#5F1231 #585F12 #125F40 #19125F
square
#5F1231 #585F12 #125F40 #19125F
split-complementary
#5F1231 #125F19 #12585F
monochromatic
#1A050D #2C0816 #5F1231 #921C4C #C62566

Accessibility & contrast

On white

12.98
#5F1231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1231
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1231#FFFFFF#000000##FFFFFF
##5F12311.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242832
Deuteranopia (green-blind)
#39372F
Tritanopia (blue-blind)
#68041F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5f1231;
/* rgb */ color: rgb(95, 18, 49);
/* oklch */ color: oklch(32.8% 0.112 1.5);
Tailwind
colors: {
  custom: {
    50: '#915868',
    500: '#5f1231',
    950: '#000000',
  },
}
SCSS
$custom: #5f1231;
$custom-light: #915868;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1231",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 335.844,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32835,
    "c": 0.11177,
    "h": 1.5
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#5F1231
secondary
#369770
accent
#EBA53D
background
#F9F5F6
surface
#F2E9EB
border
#CCC5C6
text
#0D0406
muted
#7E797A

Preview Lab

Preview with #5F1231

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

Preview Lab → · Contrast checker → · Palette generator →

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