#5F1228#5F1228

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

Color values

HEX#5F1228
RGBrgb(95, 18, 40)
HSLhsl(343, 68%, 22%)
HSVhsv(343, 81%, 37%)
CMYKcmyk(0%, 81.1%, 57.9%, 62.7%)
CIE-LABlab(20.12, 35.55, 6.91)
CIE-LCHlch(20.12, 36.22, 11.01°)
OKLaboklab(32.55% 0.108 0.0176)
OKLCHoklch(32.55% 0.109 9.2)
XYZxyz(5.3191, 3.0195, 2.3098)
Luminance0.0302 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1228 #125F49
analogous
#5F124F #5F1228 #5F2212
triadic
#5F1228 #285F12 #12285F
tetradic
#5F1228 #4F5F12 #125F49 #22125F
square
#5F1228 #4F5F12 #125F49 #22125F
split-complementary
#5F1228 #125F22 #124F5F
monochromatic
#1A050B #2C0812 #5F1228 #921C3E #C62553

Accessibility & contrast

On white

13.09
#5F1228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1228
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1228#FFFFFF#000000##FFFFFF
##5F12281.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1228;
/* rgb */ color: rgb(95, 18, 40);
/* oklch */ color: oklch(32.5% 0.109 9.2);
Tailwind
colors: {
  custom: {
    50: '#915861',
    500: '#5f1228',
    950: '#000000',
  },
}
SCSS
$custom: #5f1228;
$custom-light: #915861;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1228",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 342.857,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32546,
    "c": 0.10945,
    "h": 9.2
  },
  "luminance": 0.03019
}

Semantic roles & 50–950 ramp

primary
#5F1228
secondary
#36977B
accent
#EBB93D
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0405
muted
#7E7979

Preview Lab

Preview with #5F1228

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

Preview Lab → · Contrast checker → · Palette generator →

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