#511E45#511E45

#511E45 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.6% C 0.093 H 337.6°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#511E45
RGBrgb(81, 30, 69)
HSLhsl(314, 46%, 22%)
HSVhsv(314, 63%, 32%)
CMYKcmyk(0%, 63%, 14.8%, 68.2%)
CIE-LABlab(20.47, 29.29, -13.10)
CIE-LCHlch(20.47, 32.08, 335.91°)
OKLaboklab(32.65% 0.0859 -0.0354)
OKLCHoklch(32.65% 0.093 337.6)
XYZxyz(4.9319, 3.1079, 5.9692)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E45 #1E512A
analogous
#441E51 #511E45 #511E2C
triadic
#511E45 #45511E #1E4551
tetradic
#511E45 #51441E #1E512A #1E2C51
square
#511E45 #51441E #1E512A #1E2C51
split-complementary
#511E45 #2C511E #1E5144
monochromatic
#160813 #240D1F #511E45 #7E2F6B #AA3F91

Accessibility & contrast

On white

12.95
#511E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#511E45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E45
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E45#FFFFFF#000000##FFFFFF
##511E451.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2C46
Deuteranopia (green-blind)
#2E3444
Tritanopia (blue-blind)
#55202E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511e45;
/* rgb */ color: rgb(81, 30, 69);
/* oklch */ color: oklch(32.6% 0.093 337.6);
Tailwind
colors: {
  custom: {
    50: '#845d78',
    500: '#511e45',
    950: '#000000',
  },
}
SCSS
$custom: #511e45;
$custom-light: #845d78;
$custom-dark: #000000;
JSON
{
  "hex": "#511e45",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 69
  },
  "hsl": {
    "h": 314.118,
    "s": 45.946,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32647,
    "c": 0.0929,
    "h": 337.6
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#511E45
secondary
#458654
accent
#D67152
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511E45

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

Preview Lab → · Contrast checker → · Palette generator →

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