#511D48#511D48

#511D48 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.7% C 0.097 H 334.8°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#511D48
RGBrgb(81, 29, 72)
HSLhsl(310, 47%, 22%)
HSVhsv(310, 64%, 32%)
CMYKcmyk(0%, 64.2%, 11.1%, 68.2%)
CIE-LABlab(20.43, 30.37, -15.22)
CIE-LCHlch(20.43, 33.97, 333.39°)
OKLaboklab(32.66% 0.0881 -0.0414)
OKLCHoklch(32.66% 0.097 334.8)
XYZxyz(5.0024, 3.0963, 6.4638)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D48 #1D5126
analogous
#401D51 #511D48 #511D2E
triadic
#511D48 #48511D #1D4851
tetradic
#511D48 #51401D #1D5126 #1D2E51
square
#511D48 #51401D #1D5126 #1D2E51
split-complementary
#511D48 #2E511D #1D5140
monochromatic
#170814 #240D20 #511D48 #7E2D70 #AB3D98

Accessibility & contrast

On white

12.97
#511D48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#511D48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D48
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D48#FFFFFF#000000##FFFFFF
##511D481.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2C49
Deuteranopia (green-blind)
#2D3447
Tritanopia (blue-blind)
#55202F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511d48;
/* rgb */ color: rgb(81, 29, 72);
/* oklch */ color: oklch(32.7% 0.097 334.8);
Tailwind
colors: {
  custom: {
    50: '#845c7b',
    500: '#511d48',
    950: '#000000',
  },
}
SCSS
$custom: #511d48;
$custom-light: #845c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#511d48",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 72
  },
  "hsl": {
    "h": 310.385,
    "s": 47.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32663,
    "c": 0.09732,
    "h": 334.8
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#511D48
secondary
#44864F
accent
#D76851
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511D48

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

Preview Lab → · Contrast checker → · Palette generator →

#511D48 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva