#511B31#511B31

#511B31 is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.3% C 0.085 H 357.8°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#511B31
RGBrgb(81, 27, 49)
HSLhsl(336, 50%, 21%)
HSVhsv(336, 67%, 32%)
CMYKcmyk(0%, 66.7%, 39.5%, 68.2%)
CIE-LABlab(19.04, 27.69, -1.37)
CIE-LCHlch(19.04, 27.73, 357.17°)
OKLaboklab(31.31% 0.0845 -0.0032)
OKLCHoklch(31.31% 0.085 357.8)
XYZxyz(4.3399, 2.7554, 3.2084)
Luminance0.0276 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B31 #1B513B
analogous
#511B4C #511B31 #51201B
triadic
#511B31 #31511B #1B3151
tetradic
#511B31 #4C511B #1B513B #201B51
square
#511B31 #4C511B #1B513B #201B51
split-complementary
#511B31 #1B5120 #1B4C51
monochromatic
#17080E #230C15 #511B31 #7F2A4D #AD3A69

Accessibility & contrast

On white

13.54
#511B31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#511B31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B31
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B31#FFFFFF#000000##FFFFFF
##511B311.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242832
Deuteranopia (green-blind)
#333230
Tritanopia (blue-blind)
#581624
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #511b31;
/* rgb */ color: rgb(81, 27, 49);
/* oklch */ color: oklch(31.3% 0.085 357.8);
Tailwind
colors: {
  custom: {
    50: '#855b69',
    500: '#511b31',
    950: '#000000',
  },
}
SCSS
$custom: #511b31;
$custom-light: #855b69;
$custom-dark: #000000;
JSON
{
  "hex": "#511b31",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 49
  },
  "hsl": {
    "h": 335.556,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31308,
    "c": 0.08457,
    "h": 357.8
  },
  "luminance": 0.02755
}

Semantic roles & 50–950 ramp

primary
#511B31
secondary
#41876A
accent
#DAA14E
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0406
muted
#7C797A

Preview Lab

Preview with #511B31

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

Preview Lab → · Contrast checker → · Palette generator →

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