#511A42#511A42

#511A42 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 31.9% C 0.097 H 339.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#511A42
RGBrgb(81, 26, 66)
HSLhsl(316, 51%, 21%)
HSVhsv(316, 68%, 32%)
CMYKcmyk(0%, 67.9%, 18.5%, 68.2%)
CIE-LABlab(19.56, 30.83, -12.43)
CIE-LCHlch(19.56, 33.24, 338.04°)
OKLaboklab(31.93% 0.0914 -0.0335)
OKLCHoklch(31.93% 0.097 339.9)
XYZxyz(4.7462, 2.8819, 5.4595)
Luminance0.0288 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A42 #1A5129
analogous
#441A51 #511A42 #511A26
triadic
#511A42 #42511A #1A4251
tetradic
#511A42 #51441A #1A5129 #1A2651
square
#511A42 #51441A #1A5129 #1A2651
split-complementary
#511A42 #26511A #1A5144
monochromatic
#170713 #230B1C #511A42 #7F2968 #AE388D

Accessibility & contrast

On white

13.32
#511A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A42
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A42#FFFFFF#000000##FFFFFF
##511A421.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2A43
Deuteranopia (green-blind)
#2D3341
Tritanopia (blue-blind)
#561B2B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511a42;
/* rgb */ color: rgb(81, 26, 66);
/* oklch */ color: oklch(31.9% 0.097 339.9);
Tailwind
colors: {
  custom: {
    50: '#845b76',
    500: '#511a42',
    950: '#000000',
  },
}
SCSS
$custom: #511a42;
$custom-light: #845b76;
$custom-dark: #000000;
JSON
{
  "hex": "#511a42",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 316.364,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31933,
    "c": 0.0973,
    "h": 339.9
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#511A42
secondary
#408753
accent
#DB744D
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511A42

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

Preview Lab → · Contrast checker → · Palette generator →

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