#540E31#540E31

#540E31 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.3% C 0.106 H 355.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#540E31
RGBrgb(84, 14, 49)
HSLhsl(330, 71%, 19%)
HSVhsv(330, 83%, 33%)
CMYKcmyk(0%, 83.3%, 41.7%, 67.1%)
CIE-LABlab(17.56, 34.45, -3.49)
CIE-LCHlch(17.56, 34.62, 354.22°)
OKLaboklab(30.33% 0.1058 -0.0088)
OKLCHoklch(30.33% 0.106 355.3)
XYZxyz(4.3679, 2.4212, 3.1425)
Luminance0.0242 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E31 #0E5431
analogous
#540E54 #540E31 #540E0E
triadic
#540E31 #31540E #0E3154
tetradic
#540E31 #54540E #0E5431 #0E0E54
square
#540E31 #54540E #0E5431 #0E0E54
split-complementary
#540E31 #0E540E #0E5454
monochromatic
#1A040F #200512 #540E31 #881750 #BD1F6E

Accessibility & contrast

On white

14.15
#540E31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#540E31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E31
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E31#FFFFFF#000000##FFFFFF
##540E311.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2332
Deuteranopia (green-blind)
#30302F
Tritanopia (blue-blind)
#5B051E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540e31;
/* rgb */ color: rgb(84, 14, 49);
/* oklch */ color: oklch(30.3% 0.106 355.3);
Tailwind
colors: {
  custom: {
    50: '#885569',
    500: '#540e31',
    950: '#000000',
  },
}
SCSS
$custom: #540e31;
$custom-light: #885569;
$custom-dark: #000000;
JSON
{
  "hex": "#540e31",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 49
  },
  "hsl": {
    "h": 330,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.3033,
    "c": 0.1062,
    "h": 355.3
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#540E31
secondary
#2F8E5F
accent
#EE943A
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0306
muted
#7D787A

Preview Lab

Preview with #540E31

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

Preview Lab → · Contrast checker → · Palette generator →

#540E31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva