#511542#511542

#511542 is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.3% C 0.105 H 339.3°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#511542
RGBrgb(81, 21, 66)
HSLhsl(315, 59%, 20%)
HSVhsv(315, 74%, 32%)
CMYKcmyk(0%, 74.1%, 18.5%, 68.2%)
CIE-LABlab(18.71, 33.19, -13.75)
CIE-LCHlch(18.71, 35.92, 337.49°)
OKLaboklab(31.31% 0.0985 -0.0371)
OKLCHoklch(31.31% 0.105 339.3)
XYZxyz(4.6450, 2.6794, 5.4258)
Luminance0.0268 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511542 #155124
analogous
#421551 #511542 #511524
triadic
#511542 #425115 #154251
tetradic
#511542 #514215 #155124 #152451
square
#511542 #514215 #155124 #152451
split-complementary
#511542 #245115 #155142
monochromatic
#180614 #20081A #511542 #82226A #B22E91

Accessibility & contrast

On white

13.67
#511542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#511542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511542
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511542#FFFFFF#000000##FFFFFF
##5115421.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182743
Deuteranopia (green-blind)
#2B3141
Tritanopia (blue-blind)
#561729
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #511542;
/* rgb */ color: rgb(81, 21, 66);
/* oklch */ color: oklch(31.3% 0.105 339.3);
Tailwind
colors: {
  custom: {
    50: '#845876',
    500: '#511542',
    950: '#000000',
  },
}
SCSS
$custom: #511542;
$custom-light: #845876;
$custom-dark: #000000;
JSON
{
  "hex": "#511542",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 66
  },
  "hsl": {
    "h": 315,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.31309,
    "c": 0.10523,
    "h": 339.3
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

primary
#511542
secondary
#39894D
accent
#E26D46
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #511542

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

Preview Lab → · Contrast checker → · Palette generator →

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