#511A3F#511A3F

#511A3F is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.8% C 0.095 H 342.7°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#511A3F
RGBrgb(81, 26, 63)
HSLhsl(320, 51%, 21%)
HSVhsv(320, 68%, 32%)
CMYKcmyk(0%, 67.9%, 22.2%, 68.2%)
CIE-LABlab(19.42, 30.32, -10.57)
CIE-LCHlch(19.42, 32.11, 340.77°)
OKLaboklab(31.78% 0.0907 -0.0282)
OKLCHoklch(31.78% 0.095 342.7)
XYZxyz(4.6601, 2.8474, 5.0058)
Luminance0.0285 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A3F #1A512C
analogous
#471A51 #511A3F #511A23
triadic
#511A3F #3F511A #1A3F51
tetradic
#511A3F #51471A #1A512C #1A2351
square
#511A3F #51471A #1A512C #1A2351
split-complementary
#511A3F #23511A #1A5147
monochromatic
#170712 #230B1B #511A3F #7F2963 #AE3887

Accessibility & contrast

On white

13.38
#511A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A3F
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A3F#FFFFFF#000000##FFFFFF
##511A3F1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2940
Deuteranopia (green-blind)
#2E323E
Tritanopia (blue-blind)
#561A29
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511a3f;
/* rgb */ color: rgb(81, 26, 63);
/* oklch */ color: oklch(31.8% 0.095 342.7);
Tailwind
colors: {
  custom: {
    50: '#845b74',
    500: '#511a3f',
    950: '#000000',
  },
}
SCSS
$custom: #511a3f;
$custom-light: #845b74;
$custom-dark: #000000;
JSON
{
  "hex": "#511a3f",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 63
  },
  "hsl": {
    "h": 319.636,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31782,
    "c": 0.09495,
    "h": 342.7
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

primary
#511A3F
secondary
#408757
accent
#DB7B4D
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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