#511F31#511F31

#511F31 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 31.9% C 0.078 H 359.9°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#511F31
RGBrgb(81, 31, 49)
HSLhsl(338, 45%, 22%)
HSVhsv(338, 62%, 32%)
CMYKcmyk(0%, 61.7%, 39.5%, 68.2%)
CIE-LABlab(19.85, 25.53, -0.18)
CIE-LCHlch(19.85, 25.53, 359.61°)
OKLaboklab(31.91% 0.0778 -0.0001)
OKLCHoklch(31.91% 0.078 359.9)
XYZxyz(4.4379, 2.9515, 3.2411)
Luminance0.0295 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F31 #1F513F
analogous
#511F4A #511F31 #51261F
triadic
#511F31 #31511F #1F3151
tetradic
#511F31 #4A511F #1F513F #261F51
square
#511F31 #4A511F #1F513F #261F51
split-complementary
#511F31 #1F5126 #1F4A51
monochromatic
#16080D #250E16 #511F31 #7D304C #AA4167

Accessibility & contrast

On white

13.21
#511F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#511F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F31
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F31#FFFFFF#000000##FFFFFF
##511F311.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272A32
Deuteranopia (green-blind)
#353330
Tritanopia (blue-blind)
#581B26
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511f31;
/* rgb */ color: rgb(81, 31, 49);
/* oklch */ color: oklch(31.9% 0.078 359.9);
Tailwind
colors: {
  custom: {
    50: '#845d68',
    500: '#511f31',
    950: '#000000',
  },
}
SCSS
$custom: #511f31;
$custom-light: #845d68;
$custom-dark: #000000;
JSON
{
  "hex": "#511f31",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 49
  },
  "hsl": {
    "h": 338.4,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31914,
    "c": 0.07776,
    "h": 359.9
  },
  "luminance": 0.02951
}

Semantic roles & 50–950 ramp

primary
#511F31
secondary
#46866F
accent
#D4A653
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0406
muted
#7C797A

Preview Lab

Preview with #511F31

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

Preview Lab → · Contrast checker → · Palette generator →

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