#511C42#511C42

#511C42 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.2% C 0.094 H 340.2°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#511C42
RGBrgb(81, 28, 66)
HSLhsl(317, 49%, 21%)
HSVhsv(317, 65%, 32%)
CMYKcmyk(0%, 65.4%, 18.5%, 68.2%)
CIE-LABlab(19.94, 29.81, -11.86)
CIE-LCHlch(19.94, 32.08, 338.31°)
OKLaboklab(32.21% 0.0883 -0.0319)
OKLCHoklch(32.21% 0.094 340.2)
XYZxyz(4.7921, 2.9736, 5.4748)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C42 #1C512B
analogous
#461C51 #511C42 #511C28
triadic
#511C42 #42511C #1C4251
tetradic
#511C42 #51461C #1C512B #1C2851
square
#511C42 #51461C #1C512B #1C2851
split-complementary
#511C42 #28511C #1C5146
monochromatic
#170813 #240C1D #511C42 #7E2C67 #AC3B8C

Accessibility & contrast

On white

13.17
#511C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#511C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C42
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C42#FFFFFF#000000##FFFFFF
##511C421.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2B43
Deuteranopia (green-blind)
#2E3341
Tritanopia (blue-blind)
#561D2C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511c42;
/* rgb */ color: rgb(81, 28, 66);
/* oklch */ color: oklch(32.2% 0.094 340.2);
Tailwind
colors: {
  custom: {
    50: '#845c76',
    500: '#511c42',
    950: '#000000',
  },
}
SCSS
$custom: #511c42;
$custom-light: #845c76;
$custom-dark: #000000;
JSON
{
  "hex": "#511c42",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 66
  },
  "hsl": {
    "h": 316.981,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32207,
    "c": 0.09389,
    "h": 340.2
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#511C42
secondary
#428756
accent
#D87650
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511C42

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

Preview Lab → · Contrast checker → · Palette generator →

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