#511F40#511F40

#511F40 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.5% C 0.087 H 342.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#511F40
RGBrgb(81, 31, 64)
HSLhsl(320, 45%, 22%)
HSVhsv(320, 62%, 32%)
CMYKcmyk(0%, 61.7%, 21%, 68.2%)
CIE-LABlab(20.44, 27.86, -9.71)
CIE-LCHlch(20.44, 29.50, 340.79°)
OKLaboklab(32.55% 0.083 -0.0259)
OKLCHoklch(32.55% 0.087 342.7)
XYZxyz(4.8088, 3.0999, 5.1946)
Luminance0.0310 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F40 #1F5130
analogous
#491F51 #511F40 #511F27
triadic
#511F40 #40511F #1F4051
tetradic
#511F40 #51491F #1F5130 #1F2751
square
#511F40 #51491F #1F5130 #1F2751
split-complementary
#511F40 #27511F #1F5149
monochromatic
#160811 #250E1D #511F40 #7D3063 #AA4186

Accessibility & contrast

On white

12.96
#511F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#511F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F40
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F40#FFFFFF#000000##FFFFFF
##511F401.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232C41
Deuteranopia (green-blind)
#31343F
Tritanopia (blue-blind)
#561F2C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511f40;
/* rgb */ color: rgb(81, 31, 64);
/* oklch */ color: oklch(32.5% 0.087 342.7);
Tailwind
colors: {
  custom: {
    50: '#845d74',
    500: '#511f40',
    950: '#000000',
  },
}
SCSS
$custom: #511f40;
$custom-light: #845d74;
$custom-dark: #000000;
JSON
{
  "hex": "#511f40",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 320.4,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32548,
    "c": 0.08693,
    "h": 342.7
  },
  "luminance": 0.03099
}

Semantic roles & 50–950 ramp

primary
#511F40
secondary
#46865C
accent
#D47F53
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511F40

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

Preview Lab → · Contrast checker → · Palette generator →

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