#511B47#511B47

#511B47 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.3% C 0.100 H 335.6°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#511B47
RGBrgb(81, 27, 71)
HSLhsl(311, 50%, 21%)
HSVhsv(311, 67%, 32%)
CMYKcmyk(0%, 66.7%, 12.3%, 68.2%)
CIE-LABlab(20.00, 31.21, -15.20)
CIE-LCHlch(20.00, 34.72, 334.04°)
OKLaboklab(32.33% 0.0909 -0.0413)
OKLCHoklch(32.33% 0.1 335.6)
XYZxyz(4.9226, 2.9885, 6.2776)
Luminance0.0299 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B47 #1B5125
analogous
#401B51 #511B47 #511B2C
triadic
#511B47 #47511B #1B4751
tetradic
#511B47 #51401B #1B5125 #1B2C51
square
#511B47 #51401B #1B5125 #1B2C51
split-complementary
#511B47 #2C511B #1B5140
monochromatic
#170814 #230C1F #511B47 #7F2A6F #AD3A97

Accessibility & contrast

On white

13.14
#511B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511B47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B47
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B47#FFFFFF#000000##FFFFFF
##511B471.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2B48
Deuteranopia (green-blind)
#2C3346
Tritanopia (blue-blind)
#551E2E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511b47;
/* rgb */ color: rgb(81, 27, 71);
/* oklch */ color: oklch(32.3% 0.100 335.6);
Tailwind
colors: {
  custom: {
    50: '#845b7a',
    500: '#511b47',
    950: '#000000',
  },
}
SCSS
$custom: #511b47;
$custom-light: #845b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#511b47",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 71
  },
  "hsl": {
    "h": 311.111,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32332,
    "c": 0.09985,
    "h": 335.6
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#511B47
secondary
#41874E
accent
#DA684E
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511B47

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

Preview Lab → · Contrast checker → · Palette generator →

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