#511E47#511E47

#511E47 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.8% C 0.095 H 335.8°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#511E47
RGBrgb(81, 30, 71)
HSLhsl(312, 46%, 22%)
HSVhsv(312, 63%, 32%)
CMYKcmyk(0%, 63%, 12.3%, 68.2%)
CIE-LABlab(20.57, 29.66, -14.31)
CIE-LCHlch(20.57, 32.93, 334.24°)
OKLaboklab(32.75% 0.0863 -0.0388)
OKLCHoklch(32.75% 0.095 335.8)
XYZxyz(4.9950, 3.1332, 6.3017)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E47 #1E5128
analogous
#421E51 #511E47 #511E2E
triadic
#511E47 #47511E #1E4751
tetradic
#511E47 #51421E #1E5128 #1E2E51
square
#511E47 #51421E #1E5128 #1E2E51
split-complementary
#511E47 #2E511E #1E5142
monochromatic
#160814 #240D20 #511E47 #7E2F6E #AA3F95

Accessibility & contrast

On white

12.91
#511E47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#511E47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E47
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E47#FFFFFF#000000##FFFFFF
##511E471.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2D48
Deuteranopia (green-blind)
#2E3446
Tritanopia (blue-blind)
#55212F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511e47;
/* rgb */ color: rgb(81, 30, 71);
/* oklch */ color: oklch(32.8% 0.095 335.8);
Tailwind
colors: {
  custom: {
    50: '#845d7a',
    500: '#511e47',
    950: '#000000',
  },
}
SCSS
$custom: #511e47;
$custom-light: #845d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#511e47",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 71
  },
  "hsl": {
    "h": 311.765,
    "s": 45.946,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32752,
    "c": 0.09466,
    "h": 335.8
  },
  "luminance": 0.03133
}

Semantic roles & 50–950 ramp

primary
#511E47
secondary
#458652
accent
#D66C52
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511E47

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

Preview Lab → · Contrast checker → · Palette generator →

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