#511F47#511F47

#511F47 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 32.9% C 0.093 H 335.9°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#511F47
RGBrgb(81, 31, 71)
HSLhsl(312, 45%, 22%)
HSVhsv(312, 62%, 32%)
CMYKcmyk(0%, 61.7%, 12.3%, 68.2%)
CIE-LABlab(20.77, 29.12, -14.00)
CIE-LCHlch(20.77, 32.31, 334.32°)
OKLaboklab(32.9% 0.0848 -0.0379)
OKLCHoklch(32.9% 0.093 335.9)
XYZxyz(5.0207, 3.1846, 6.3103)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F47 #1F5129
analogous
#421F51 #511F47 #511F2E
triadic
#511F47 #47511F #1F4751
tetradic
#511F47 #51421F #1F5129 #1F2E51
square
#511F47 #51421F #1F5129 #1F2E51
split-complementary
#511F47 #2E511F #1F5142
monochromatic
#160813 #250E20 #511F47 #7D306E #AA4195

Accessibility & contrast

On white

12.83
#511F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#511F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F47
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F47#FFFFFF#000000##FFFFFF
##511F471.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2D48
Deuteranopia (green-blind)
#2E3546
Tritanopia (blue-blind)
#552230
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511f47;
/* rgb */ color: rgb(81, 31, 71);
/* oklch */ color: oklch(32.9% 0.093 335.9);
Tailwind
colors: {
  custom: {
    50: '#845e7a',
    500: '#511f47',
    950: '#000000',
  },
}
SCSS
$custom: #511f47;
$custom-light: #845e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#511f47",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 71
  },
  "hsl": {
    "h": 312,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32899,
    "c": 0.09287,
    "h": 335.9
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#511F47
secondary
#468653
accent
#D46D53
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511F47

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

Preview Lab → · Contrast checker → · Palette generator →

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