#511D31#511D31

#511D31 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 31.6% C 0.081 H 358.8°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#511D31
RGBrgb(81, 29, 49)
HSLhsl(337, 47%, 22%)
HSVhsv(337, 64%, 32%)
CMYKcmyk(0%, 64.2%, 39.5%, 68.2%)
CIE-LABlab(19.43, 26.63, -0.78)
CIE-LCHlch(19.43, 26.64, 358.32°)
OKLaboklab(31.6% 0.0812 -0.0017)
OKLCHoklch(31.6% 0.081 358.8)
XYZxyz(4.3873, 2.8503, 3.2242)
Luminance0.0285 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D31 #1D513D
analogous
#511D4B #511D31 #51231D
triadic
#511D31 #31511D #1D3151
tetradic
#511D31 #4B511D #1D513D #231D51
square
#511D31 #4B511D #1D513D #231D51
split-complementary
#511D31 #1D5123 #1D4B51
monochromatic
#17080E #240D16 #511D31 #7E2D4C #AB3D68

Accessibility & contrast

On white

13.38
#511D31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#511D31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D31
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D31#FFFFFF#000000##FFFFFF
##511D311.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262932
Deuteranopia (green-blind)
#343330
Tritanopia (blue-blind)
#581925
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511d31;
/* rgb */ color: rgb(81, 29, 49);
/* oklch */ color: oklch(31.6% 0.081 358.8);
Tailwind
colors: {
  custom: {
    50: '#845c69',
    500: '#511d31',
    950: '#000000',
  },
}
SCSS
$custom: #511d31;
$custom-light: #845c69;
$custom-dark: #000000;
JSON
{
  "hex": "#511d31",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 49
  },
  "hsl": {
    "h": 336.923,
    "s": 47.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31604,
    "c": 0.08121,
    "h": 358.8
  },
  "luminance": 0.0285
}

Semantic roles & 50–950 ramp

primary
#511D31
secondary
#44866D
accent
#D7A351
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0406
muted
#7C797A

Preview Lab

Preview with #511D31

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

Preview Lab → · Contrast checker → · Palette generator →

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