#511B42#511B42

#511B42 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.1% C 0.096 H 340.0°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#511B42
RGBrgb(81, 27, 66)
HSLhsl(317, 50%, 21%)
HSVhsv(317, 67%, 32%)
CMYKcmyk(0%, 66.7%, 18.5%, 68.2%)
CIE-LABlab(19.75, 30.32, -12.15)
CIE-LCHlch(19.75, 32.66, 338.17°)
OKLaboklab(32.07% 0.0899 -0.0327)
OKLCHoklch(32.07% 0.096 340)
XYZxyz(4.7687, 2.9270, 5.4670)
Luminance0.0293 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B42 #1B512A
analogous
#451B51 #511B42 #511B27
triadic
#511B42 #42511B #1B4251
tetradic
#511B42 #51451B #1B512A #1B2751
square
#511B42 #51451B #1B512A #1B2751
split-complementary
#511B42 #27511B #1B5145
monochromatic
#170813 #230C1D #511B42 #7F2A67 #AD3A8D

Accessibility & contrast

On white

13.25
#511B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B42
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B42#FFFFFF#000000##FFFFFF
##511B421.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b42;
/* rgb */ color: rgb(81, 27, 66);
/* oklch */ color: oklch(32.1% 0.096 340.0);
Tailwind
colors: {
  custom: {
    50: '#845b76',
    500: '#511b42',
    950: '#000000',
  },
}
SCSS
$custom: #511b42;
$custom-light: #845b76;
$custom-dark: #000000;
JSON
{
  "hex": "#511b42",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 66
  },
  "hsl": {
    "h": 316.667,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32068,
    "c": 0.09561,
    "h": 340
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#511B42
secondary
#418754
accent
#DA754E
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511B42

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

Preview Lab → · Contrast checker → · Palette generator →

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