#511D42#511D42

#511D42 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.4% C 0.092 H 340.3°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#511D42
RGBrgb(81, 29, 66)
HSLhsl(317, 47%, 22%)
HSVhsv(317, 64%, 32%)
CMYKcmyk(0%, 64.2%, 18.5%, 68.2%)
CIE-LABlab(20.13, 29.29, -11.56)
CIE-LCHlch(20.13, 31.48, 338.46°)
OKLaboklab(32.35% 0.0868 -0.031)
OKLCHoklch(32.35% 0.092 340.3)
XYZxyz(4.8162, 3.0218, 5.4828)
Luminance0.0302 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D42 #1D512C
analogous
#461D51 #511D42 #511D28
triadic
#511D42 #42511D #1D4251
tetradic
#511D42 #51461D #1D512C #1D2851
square
#511D42 #51461D #1D512C #1D2851
split-complementary
#511D42 #28511D #1D5146
monochromatic
#170812 #240D1D #511D42 #7E2D67 #AB3D8B

Accessibility & contrast

On white

13.09
#511D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D42
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D42#FFFFFF#000000##FFFFFF
##511D421.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)
#202B43
Deuteranopia (green-blind)
#2F3441
Tritanopia (blue-blind)
#561E2C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511d42;
/* rgb */ color: rgb(81, 29, 66);
/* oklch */ color: oklch(32.4% 0.092 340.3);
Tailwind
colors: {
  custom: {
    50: '#845c76',
    500: '#511d42',
    950: '#000000',
  },
}
SCSS
$custom: #511d42;
$custom-light: #845c76;
$custom-dark: #000000;
JSON
{
  "hex": "#511d42",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 66
  },
  "hsl": {
    "h": 317.308,
    "s": 47.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.3235,
    "c": 0.09215,
    "h": 340.3
  },
  "luminance": 0.03021
}

Semantic roles & 50–950 ramp

primary
#511D42
secondary
#448657
accent
#D77851
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511D42

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

Preview Lab → · Contrast checker → · Palette generator →

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