#511A40#511A40

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

Color values

HEX#511A40
RGBrgb(81, 26, 64)
HSLhsl(319, 51%, 21%)
HSVhsv(319, 68%, 32%)
CMYKcmyk(0%, 67.9%, 21%, 68.2%)
CIE-LABlab(19.47, 30.49, -11.20)
CIE-LCHlch(19.47, 32.48, 339.83°)
OKLaboklab(31.83% 0.0909 -0.03)
OKLCHoklch(31.83% 0.096 341.7)
XYZxyz(4.6883, 2.8587, 5.1544)
Luminance0.0286 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A40 #1A512B
analogous
#461A51 #511A40 #511A24
triadic
#511A40 #40511A #1A4051
tetradic
#511A40 #51461A #1A512B #1A2451
square
#511A40 #51461A #1A512B #1A2451
split-complementary
#511A40 #24511A #1A5146
monochromatic
#170712 #230B1B #511A40 #7F2965 #AE3889

Accessibility & contrast

On white

13.36
#511A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A40
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A40#FFFFFF#000000##FFFFFF
##511A401.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511a40;
/* rgb */ color: rgb(81, 26, 64);
/* oklch */ color: oklch(31.8% 0.096 341.7);
Tailwind
colors: {
  custom: {
    50: '#845b75',
    500: '#511a40',
    950: '#000000',
  },
}
SCSS
$custom: #511a40;
$custom-light: #845b75;
$custom-dark: #000000;
JSON
{
  "hex": "#511a40",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 64
  },
  "hsl": {
    "h": 318.545,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31831,
    "c": 0.09572,
    "h": 341.7
  },
  "luminance": 0.02858
}

Semantic roles & 50–950 ramp

primary
#511A40
secondary
#408756
accent
#DB794D
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511A40

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

Preview Lab → · Contrast checker → · Palette generator →

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