#511F48#511F48

#511F48 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.0% C 0.094 H 335.0°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#511F48
RGBrgb(81, 31, 72)
HSLhsl(311, 45%, 22%)
HSVhsv(311, 62%, 32%)
CMYKcmyk(0%, 61.7%, 11.1%, 68.2%)
CIE-LABlab(20.82, 29.31, -14.61)
CIE-LCHlch(20.82, 32.75, 333.51°)
OKLaboklab(32.95% 0.085 -0.0397)
OKLCHoklch(32.95% 0.094 335)
XYZxyz(5.0531, 3.1976, 6.4807)
Luminance0.0320 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F48 #1F5128
analogous
#411F51 #511F48 #511F2F
triadic
#511F48 #48511F #1F4851
tetradic
#511F48 #51411F #1F5128 #1F2F51
square
#511F48 #51411F #1F5128 #1F2F51
split-complementary
#511F48 #2F511F #1F5141
monochromatic
#160814 #250E21 #511F48 #7D306F #AA4197

Accessibility & contrast

On white

12.81
#511F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F48
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F48#FFFFFF#000000##FFFFFF
##511F481.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511f48;
/* rgb */ color: rgb(81, 31, 72);
/* oklch */ color: oklch(33.0% 0.094 335.0);
Tailwind
colors: {
  custom: {
    50: '#845e7b',
    500: '#511f48',
    950: '#000000',
  },
}
SCSS
$custom: #511f48;
$custom-light: #845e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#511f48",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 72
  },
  "hsl": {
    "h": 310.8,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32952,
    "c": 0.09378,
    "h": 335
  },
  "luminance": 0.03197
}

Semantic roles & 50–950 ramp

primary
#511F48
secondary
#468652
accent
#D46B53
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511F48

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

Preview Lab → · Contrast checker → · Palette generator →

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