#511A31#511A31

#511A31 is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.2% C 0.086 H 357.4°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#511A31
RGBrgb(81, 26, 49)
HSLhsl(335, 51%, 21%)
HSVhsv(335, 68%, 32%)
CMYKcmyk(0%, 67.9%, 39.5%, 68.2%)
CIE-LABlab(18.84, 28.21, -1.65)
CIE-LCHlch(18.84, 28.26, 356.65°)
OKLaboklab(31.17% 0.0861 -0.004)
OKLCHoklch(31.17% 0.086 357.4)
XYZxyz(4.3174, 2.7103, 3.2009)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A31 #1A513A
analogous
#511A4C #511A31 #511E1A
triadic
#511A31 #31511A #1A3151
tetradic
#511A31 #4C511A #1A513A #1E1A51
square
#511A31 #4C511A #1A513A #1E1A51
split-complementary
#511A31 #1A511E #1A4C51
monochromatic
#17070E #230B15 #511A31 #7F294D #AE3869

Accessibility & contrast

On white

13.62
#511A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#511A31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A31
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A31#FFFFFF#000000##FFFFFF
##511A311.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232732
Deuteranopia (green-blind)
#323230
Tritanopia (blue-blind)
#581523
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #511a31;
/* rgb */ color: rgb(81, 26, 49);
/* oklch */ color: oklch(31.2% 0.086 357.4);
Tailwind
colors: {
  custom: {
    50: '#855a69',
    500: '#511a31',
    950: '#000000',
  },
}
SCSS
$custom: #511a31;
$custom-light: #855a69;
$custom-dark: #000000;
JSON
{
  "hex": "#511a31",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 49
  },
  "hsl": {
    "h": 334.909,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31165,
    "c": 0.08623,
    "h": 357.4
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#511A31
secondary
#408769
accent
#DBA04D
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0406
muted
#7C797A

Preview Lab

Preview with #511A31

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

Preview Lab → · Contrast checker → · Palette generator →

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