#501228#501228

#501228 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.6% C 0.094 H 3.3°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#501228
RGBrgb(80, 18, 40)
HSLhsl(339, 63%, 19%)
HSVhsv(339, 78%, 31%)
CMYKcmyk(0%, 77.5%, 50%, 68.6%)
CIE-LABlab(16.95, 30.55, 1.98)
CIE-LCHlch(16.95, 30.61, 3.71°)
OKLaboklab(29.62% 0.0935 0.0054)
OKLCHoklch(29.62% 0.094 3.3)
XYZxyz(3.9079, 2.2918, 2.2436)
Luminance0.0229 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501228 #12503A
analogous
#501247 #501228 #501B12
triadic
#501228 #285012 #122850
tetradic
#501228 #475012 #12503A #1B1250
square
#501228 #475012 #12503A #1B1250
split-complementary
#501228 #12501B #124750
monochromatic
#19060C #1E070F #501228 #821D41 #B4285A

Accessibility & contrast

On white

14.40
#501228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#501228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501228
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501228#FFFFFF#000000##FFFFFF
##5012281.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202229
Deuteranopia (green-blind)
#302E27
Tritanopia (blue-blind)
#58081B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #501228;
/* rgb */ color: rgb(80, 18, 40);
/* oklch */ color: oklch(29.6% 0.094 3.3);
Tailwind
colors: {
  custom: {
    50: '#855561',
    500: '#501228',
    950: '#000000',
  },
}
SCSS
$custom: #501228;
$custom-light: #855561;
$custom-dark: #000000;
JSON
{
  "hex": "#501228",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 338.71,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29622,
    "c": 0.09363,
    "h": 3.3
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#501228
secondary
#35896B
accent
#E6AC41
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #501228

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

Preview Lab → · Contrast checker → · Palette generator →

#501228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva