#511E42#511E42

#511E42 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.5% C 0.090 H 340.5°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#511E42
RGBrgb(81, 30, 66)
HSLhsl(318, 46%, 22%)
HSVhsv(318, 63%, 32%)
CMYKcmyk(0%, 63%, 18.5%, 68.2%)
CIE-LABlab(20.33, 28.75, -11.26)
CIE-LCHlch(20.33, 30.88, 338.62°)
OKLaboklab(32.5% 0.0852 -0.0302)
OKLCHoklch(32.5% 0.09 340.5)
XYZxyz(4.8411, 3.0716, 5.4911)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E42 #1E512D
analogous
#471E51 #511E42 #511E29
triadic
#511E42 #42511E #1E4251
tetradic
#511E42 #51471E #1E512D #1E2951
square
#511E42 #51471E #1E512D #1E2951
split-complementary
#511E42 #29511E #1E5147
monochromatic
#160812 #240D1E #511E42 #7E2F66 #AA3F8B

Accessibility & contrast

On white

13.01
#511E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E42
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E42#FFFFFF#000000##FFFFFF
##511E421.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212C43
Deuteranopia (green-blind)
#2F3441
Tritanopia (blue-blind)
#561F2D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511e42;
/* rgb */ color: rgb(81, 30, 66);
/* oklch */ color: oklch(32.5% 0.090 340.5);
Tailwind
colors: {
  custom: {
    50: '#845d76',
    500: '#511e42',
    950: '#000000',
  },
}
SCSS
$custom: #511e42;
$custom-light: #845d76;
$custom-dark: #000000;
JSON
{
  "hex": "#511e42",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 66
  },
  "hsl": {
    "h": 317.647,
    "s": 45.946,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32495,
    "c": 0.09036,
    "h": 340.5
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#511E42
secondary
#458658
accent
#D67952
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511E42

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

Preview Lab → · Contrast checker → · Palette generator →

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