#511F42#511F42

#511F42 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.6% C 0.089 H 340.6°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#511F42
RGBrgb(81, 31, 66)
HSLhsl(318, 45%, 22%)
HSVhsv(318, 62%, 32%)
CMYKcmyk(0%, 61.7%, 18.5%, 68.2%)
CIE-LABlab(20.53, 28.21, -10.95)
CIE-LCHlch(20.53, 30.26, 338.79°)
OKLaboklab(32.64% 0.0835 -0.0293)
OKLCHoklch(32.64% 0.089 340.6)
XYZxyz(4.8668, 3.1230, 5.4997)
Luminance0.0312 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F42 #1F512E
analogous
#471F51 #511F42 #511F29
triadic
#511F42 #42511F #1F4251
tetradic
#511F42 #51471F #1F512E #1F2951
square
#511F42 #51471F #1F512E #1F2951
split-complementary
#511F42 #29511F #1F5147
monochromatic
#160812 #250E1E #511F42 #7D3066 #AA418A

Accessibility & contrast

On white

12.93
#511F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#511F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F42
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F42#FFFFFF#000000##FFFFFF
##511F421.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222C43
Deuteranopia (green-blind)
#303441
Tritanopia (blue-blind)
#56202D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511f42;
/* rgb */ color: rgb(81, 31, 66);
/* oklch */ color: oklch(32.6% 0.089 340.6);
Tailwind
colors: {
  custom: {
    50: '#845d76',
    500: '#511f42',
    950: '#000000',
  },
}
SCSS
$custom: #511f42;
$custom-light: #845d76;
$custom-dark: #000000;
JSON
{
  "hex": "#511f42",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 66
  },
  "hsl": {
    "h": 318,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32644,
    "c": 0.08854,
    "h": 340.6
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#511F42
secondary
#468659
accent
#D47A53
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #511F42

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

Preview Lab → · Contrast checker → · Palette generator →

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