#511C40#511C40

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

Color values

HEX#511C40
RGBrgb(81, 28, 64)
HSLhsl(319, 49%, 21%)
HSVhsv(319, 65%, 32%)
CMYKcmyk(0%, 65.4%, 21%, 68.2%)
CIE-LABlab(19.84, 29.46, -10.62)
CIE-LCHlch(19.84, 31.32, 340.18°)
OKLaboklab(32.11% 0.0878 -0.0284)
OKLCHoklch(32.11% 0.092 342.1)
XYZxyz(4.7341, 2.9504, 5.1697)
Luminance0.0295 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C40 #1C512D
analogous
#481C51 #511C40 #511C26
triadic
#511C40 #40511C #1C4051
tetradic
#511C40 #51481C #1C512D #1C2651
square
#511C40 #51481C #1C512D #1C2651
split-complementary
#511C40 #26511C #1C5148
monochromatic
#170812 #240C1C #511C40 #7E2C64 #AC3B88

Accessibility & contrast

On white

13.21
#511C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C40
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C40#FFFFFF#000000##FFFFFF
##511C401.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A41
Deuteranopia (green-blind)
#2F333F
Tritanopia (blue-blind)
#561C2B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511c40;
/* rgb */ color: rgb(81, 28, 64);
/* oklch */ color: oklch(32.1% 0.092 342.1);
Tailwind
colors: {
  custom: {
    50: '#845c74',
    500: '#511c40',
    950: '#000000',
  },
}
SCSS
$custom: #511c40;
$custom-light: #845c74;
$custom-dark: #000000;
JSON
{
  "hex": "#511c40",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 64
  },
  "hsl": {
    "h": 319.245,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32108,
    "c": 0.0923,
    "h": 342.1
  },
  "luminance": 0.0295
}

Semantic roles & 50–950 ramp

primary
#511C40
secondary
#428758
accent
#D87B50
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511C40

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

Preview Lab → · Contrast checker → · Palette generator →

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