#511128#511128

#511128 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.7% C 0.096 H 3.4°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#511128
RGBrgb(81, 17, 40)
HSLhsl(338, 65%, 19%)
HSVhsv(338, 79%, 32%)
CMYKcmyk(0%, 79%, 50.6%, 68.2%)
CIE-LABlab(17.01, 31.31, 2.09)
CIE-LCHlch(17.01, 31.38, 3.82°)
OKLaboklab(29.7% 0.0958 0.0057)
OKLCHoklch(29.7% 0.096 3.4)
XYZxyz(3.9771, 2.3039, 2.2423)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511128 #11513A
analogous
#511148 #511128 #511A11
triadic
#511128 #285111 #112851
tetradic
#511128 #485111 #11513A #1A1151
square
#511128 #485111 #11513A #1A1151
split-complementary
#511128 #11511A #114851
monochromatic
#19050C #1E060F #511128 #841C41 #B6265A

Accessibility & contrast

On white

14.38
#511128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511128
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511128#FFFFFF#000000##FFFFFF
##5111281.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202229
Deuteranopia (green-blind)
#312E26
Tritanopia (blue-blind)
#59061B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #511128;
/* rgb */ color: rgb(81, 17, 40);
/* oklch */ color: oklch(29.7% 0.096 3.4);
Tailwind
colors: {
  custom: {
    50: '#865561',
    500: '#511128',
    950: '#000000',
  },
}
SCSS
$custom: #511128;
$custom-light: #865561;
$custom-dark: #000000;
JSON
{
  "hex": "#511128",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 40
  },
  "hsl": {
    "h": 338.438,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29704,
    "c": 0.096,
    "h": 3.4
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

primary
#511128
secondary
#348A6B
accent
#E8AC40
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #511128

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

Preview Lab → · Contrast checker → · Palette generator →

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