#511B3F#511B3F

#511B3F is a dark, moderate pink. Relative luminance 0.029; OKLCH L 31.9% C 0.093 H 342.9°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#511B3F
RGBrgb(81, 27, 63)
HSLhsl(320, 50%, 21%)
HSVhsv(320, 67%, 32%)
CMYKcmyk(0%, 66.7%, 22.2%, 68.2%)
CIE-LABlab(19.61, 29.81, -10.29)
CIE-LCHlch(19.61, 31.54, 340.96°)
OKLaboklab(31.92% 0.0891 -0.0275)
OKLCHoklch(31.92% 0.093 342.9)
XYZxyz(4.6826, 2.8925, 5.0134)
Luminance0.0289 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B3F #1B512D
analogous
#481B51 #511B3F #511B24
triadic
#511B3F #3F511B #1B3F51
tetradic
#511B3F #51481B #1B512D #1B2451
square
#511B3F #51481B #1B512D #1B2451
split-complementary
#511B3F #24511B #1B5148
monochromatic
#170812 #230C1B #511B3F #7F2A63 #AD3A86

Accessibility & contrast

On white

13.30
#511B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B3F
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B3F#FFFFFF#000000##FFFFFF
##511B3F1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2A40
Deuteranopia (green-blind)
#2F333E
Tritanopia (blue-blind)
#561B2A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511b3f;
/* rgb */ color: rgb(81, 27, 63);
/* oklch */ color: oklch(31.9% 0.093 342.9);
Tailwind
colors: {
  custom: {
    50: '#845b74',
    500: '#511b3f',
    950: '#000000',
  },
}
SCSS
$custom: #511b3f;
$custom-light: #845b74;
$custom-dark: #000000;
JSON
{
  "hex": "#511b3f",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 63
  },
  "hsl": {
    "h": 320,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31919,
    "c": 0.09325,
    "h": 342.9
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#511B3F
secondary
#418758
accent
#DA7D4E
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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