#511B41#511B41

#511B41 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.0% C 0.095 H 341.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#511B41
RGBrgb(81, 27, 65)
HSLhsl(318, 50%, 21%)
HSVhsv(318, 67%, 32%)
CMYKcmyk(0%, 66.7%, 19.8%, 68.2%)
CIE-LABlab(19.70, 30.15, -11.53)
CIE-LCHlch(19.70, 32.28, 339.07°)
OKLaboklab(32.02% 0.0896 -0.0309)
OKLCHoklch(32.02% 0.095 341)
XYZxyz(4.7395, 2.9153, 5.3131)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B41 #1B512B
analogous
#461B51 #511B41 #511B26
triadic
#511B41 #41511B #1B4151
tetradic
#511B41 #51461B #1B512B #1B2651
square
#511B41 #51461B #1B512B #1B2651
split-complementary
#511B41 #26511B #1B5146
monochromatic
#170812 #230C1C #511B41 #7F2A66 #AD3A8B

Accessibility & contrast

On white

13.27
#511B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#511B41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B41
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B41#FFFFFF#000000##FFFFFF
##511B411.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b41;
/* rgb */ color: rgb(81, 27, 65);
/* oklch */ color: oklch(32.0% 0.095 341.0);
Tailwind
colors: {
  custom: {
    50: '#845b75',
    500: '#511b41',
    950: '#000000',
  },
}
SCSS
$custom: #511b41;
$custom-light: #845b75;
$custom-dark: #000000;
JSON
{
  "hex": "#511b41",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 65
  },
  "hsl": {
    "h": 317.778,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32018,
    "c": 0.09481,
    "h": 341
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#511B41
secondary
#418756
accent
#DA784E
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511B41

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

Preview Lab → · Contrast checker → · Palette generator →

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