#511B40#511B40

#511B40 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.0% C 0.094 H 341.9°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#511B40
RGBrgb(81, 27, 64)
HSLhsl(319, 50%, 21%)
HSVhsv(319, 67%, 32%)
CMYKcmyk(0%, 66.7%, 21%, 68.2%)
CIE-LABlab(19.65, 29.98, -10.91)
CIE-LCHlch(19.65, 31.90, 340.00°)
OKLaboklab(31.97% 0.0894 -0.0292)
OKLCHoklch(31.97% 0.094 341.9)
XYZxyz(4.7108, 2.9038, 5.1619)
Luminance0.0290 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B40 #1B512C
analogous
#471B51 #511B40 #511B25
triadic
#511B40 #40511B #1B4051
tetradic
#511B40 #51471B #1B512C #1B2551
square
#511B40 #51471B #1B512C #1B2551
split-complementary
#511B40 #25511B #1B5147
monochromatic
#170812 #230C1C #511B40 #7F2A64 #AD3A89

Accessibility & contrast

On white

13.29
#511B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#511B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B40
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B40#FFFFFF#000000##FFFFFF
##511B401.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2A41
Deuteranopia (green-blind)
#2F333F
Tritanopia (blue-blind)
#561C2A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511b40;
/* rgb */ color: rgb(81, 27, 64);
/* oklch */ color: oklch(32.0% 0.094 341.9);
Tailwind
colors: {
  custom: {
    50: '#845b75',
    500: '#511b40',
    950: '#000000',
  },
}
SCSS
$custom: #511b40;
$custom-light: #845b75;
$custom-dark: #000000;
JSON
{
  "hex": "#511b40",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 64
  },
  "hsl": {
    "h": 318.889,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31968,
    "c": 0.09402,
    "h": 341.9
  },
  "luminance": 0.02903
}

Semantic roles & 50–950 ramp

primary
#511B40
secondary
#418757
accent
#DA7A4E
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511B40

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

Preview Lab → · Contrast checker → · Palette generator →

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