#511540#511540

#511540 is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.2% C 0.104 H 341.1°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#511540
RGBrgb(81, 21, 64)
HSLhsl(317, 59%, 20%)
HSVhsv(317, 74%, 32%)
CMYKcmyk(0%, 74.1%, 21%, 68.2%)
CIE-LABlab(18.61, 32.85, -12.52)
CIE-LCHlch(18.61, 35.16, 339.14°)
OKLaboklab(31.2% 0.0981 -0.0336)
OKLCHoklch(31.2% 0.104 341.1)
XYZxyz(4.5870, 2.6563, 5.1206)
Luminance0.0266 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511540 #155126
analogous
#441551 #511540 #511522
triadic
#511540 #405115 #154051
tetradic
#511540 #514415 #155126 #152251
square
#511540 #514415 #155126 #152251
split-complementary
#511540 #225115 #155144
monochromatic
#180613 #20081A #511540 #822266 #B22E8D

Accessibility & contrast

On white

13.71
#511540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#511540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511540
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511540#FFFFFF#000000##FFFFFF
##5115401.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192741
Deuteranopia (green-blind)
#2C313F
Tritanopia (blue-blind)
#561628
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #511540;
/* rgb */ color: rgb(81, 21, 64);
/* oklch */ color: oklch(31.2% 0.104 341.1);
Tailwind
colors: {
  custom: {
    50: '#845875',
    500: '#511540',
    950: '#000000',
  },
}
SCSS
$custom: #511540;
$custom-light: #845875;
$custom-dark: #000000;
JSON
{
  "hex": "#511540",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 317,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.31203,
    "c": 0.10367,
    "h": 341.1
  },
  "luminance": 0.02656
}

Semantic roles & 50–950 ramp

primary
#511540
secondary
#398950
accent
#E27246
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #511540

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

Preview Lab → · Contrast checker → · Palette generator →

#511540 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva