#511A41#511A41

#511A41 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 31.9% C 0.097 H 340.8°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#511A41
RGBrgb(81, 26, 65)
HSLhsl(317, 51%, 21%)
HSVhsv(317, 68%, 32%)
CMYKcmyk(0%, 67.9%, 19.8%, 68.2%)
CIE-LABlab(19.52, 30.66, -11.82)
CIE-LCHlch(19.52, 32.85, 338.92°)
OKLaboklab(31.88% 0.0911 -0.0317)
OKLCHoklch(31.88% 0.097 340.8)
XYZxyz(4.7170, 2.8702, 5.3056)
Luminance0.0287 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A41 #1A512A
analogous
#451A51 #511A41 #511A25
triadic
#511A41 #41511A #1A4151
tetradic
#511A41 #51451A #1A512A #1A2551
square
#511A41 #51451A #1A512A #1A2551
split-complementary
#511A41 #25511A #1A5145
monochromatic
#170713 #230B1C #511A41 #7F2966 #AE388B

Accessibility & contrast

On white

13.34
#511A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#511A41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A41
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A41#FFFFFF#000000##FFFFFF
##511A411.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2A42
Deuteranopia (green-blind)
#2E3340
Tritanopia (blue-blind)
#561B2A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511a41;
/* rgb */ color: rgb(81, 26, 65);
/* oklch */ color: oklch(31.9% 0.097 340.8);
Tailwind
colors: {
  custom: {
    50: '#845b75',
    500: '#511a41',
    950: '#000000',
  },
}
SCSS
$custom: #511a41;
$custom-light: #845b75;
$custom-dark: #000000;
JSON
{
  "hex": "#511a41",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 65
  },
  "hsl": {
    "h": 317.455,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31882,
    "c": 0.0965,
    "h": 340.8
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#511A41
secondary
#408754
accent
#DB764D
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511A41

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

Preview Lab → · Contrast checker → · Palette generator →

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