#511E40#511E40

#511E40 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.4% C 0.089 H 342.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#511E40
RGBrgb(81, 30, 64)
HSLhsl(320, 46%, 22%)
HSVhsv(320, 63%, 32%)
CMYKcmyk(0%, 63%, 21%, 68.2%)
CIE-LABlab(20.24, 28.40, -10.02)
CIE-LCHlch(20.24, 30.12, 340.57°)
OKLaboklab(32.4% 0.0846 -0.0267)
OKLCHoklch(32.4% 0.089 342.5)
XYZxyz(4.7831, 3.0485, 5.1860)
Luminance0.0305 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E40 #1E512F
analogous
#491E51 #511E40 #511E27
triadic
#511E40 #40511E #1E4051
tetradic
#511E40 #51491E #1E512F #1E2751
square
#511E40 #51491E #1E512F #1E2751
split-complementary
#511E40 #27511E #1E5149
monochromatic
#160812 #240D1D #511E40 #7E2F63 #AA3F87

Accessibility & contrast

On white

13.05
#511E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#511E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E40
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E40#FFFFFF#000000##FFFFFF
##511E401.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222C41
Deuteranopia (green-blind)
#30343F
Tritanopia (blue-blind)
#561E2C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511e40;
/* rgb */ color: rgb(81, 30, 64);
/* oklch */ color: oklch(32.4% 0.089 342.5);
Tailwind
colors: {
  custom: {
    50: '#845d74',
    500: '#511e40',
    950: '#000000',
  },
}
SCSS
$custom: #511e40;
$custom-light: #845d74;
$custom-dark: #000000;
JSON
{
  "hex": "#511e40",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 64
  },
  "hsl": {
    "h": 320,
    "s": 45.946,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32398,
    "c": 0.08875,
    "h": 342.5
  },
  "luminance": 0.03048
}

Semantic roles & 50–950 ramp

primary
#511E40
secondary
#45865B
accent
#D67E52
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511E40

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

Preview Lab → · Contrast checker → · Palette generator →

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