#5F1128#5F1128

#5F1128 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.5% C 0.111 H 8.9°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#5F1128
RGBrgb(95, 17, 40)
HSLhsl(342, 70%, 22%)
HSVhsv(342, 82%, 37%)
CMYKcmyk(0%, 82.1%, 57.9%, 62.7%)
CIE-LABlab(19.99, 35.91, 6.74)
CIE-LCHlch(19.99, 36.54, 10.63°)
OKLaboklab(32.45% 0.1092 0.0172)
OKLCHoklch(32.45% 0.111 8.9)
XYZxyz(5.3033, 2.9877, 2.3045)
Luminance0.0299 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1128 #115F48
analogous
#5F114F #5F1128 #5F2111
triadic
#5F1128 #285F11 #11285F
tetradic
#5F1128 #4F5F11 #115F48 #21115F
square
#5F1128 #4F5F11 #115F48 #21115F
split-complementary
#5F1128 #115F21 #114F5F
monochromatic
#1A050B #2B0812 #5F1128 #931A3E #C72454

Accessibility & contrast

On white

13.15
#5F1128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5F1128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1128
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1128#FFFFFF#000000##FFFFFF
##5F11281.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262628
Deuteranopia (green-blind)
#3A3626
Tritanopia (blue-blind)
#68001B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5f1128;
/* rgb */ color: rgb(95, 17, 40);
/* oklch */ color: oklch(32.5% 0.111 8.9);
Tailwind
colors: {
  custom: {
    50: '#915861',
    500: '#5f1128',
    950: '#000000',
  },
}
SCSS
$custom: #5f1128;
$custom-light: #915861;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1128",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 40
  },
  "hsl": {
    "h": 342.308,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32453,
    "c": 0.11052,
    "h": 8.9
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#5F1128
secondary
#34987A
accent
#ECB83B
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0405
muted
#7E7979

Preview Lab

Preview with #5F1128

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

Preview Lab → · Contrast checker → · Palette generator →

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