#540E40#540E40

#540E40 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.0% C 0.115 H 342.3°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#540E40
RGBrgb(84, 14, 64)
HSLhsl(317, 71%, 19%)
HSVhsv(317, 83%, 33%)
CMYKcmyk(0%, 83.3%, 23.8%, 67.1%)
CIE-LABlab(18.23, 36.48, -13.06)
CIE-LCHlch(18.23, 38.75, 340.31°)
OKLaboklab(31.04% 0.1098 -0.0351)
OKLCHoklch(31.04% 0.115 342.3)
XYZxyz(4.7388, 2.5696, 5.0959)
Luminance0.0257 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E40 #0E5422
analogous
#450E54 #540E40 #540E1D
triadic
#540E40 #40540E #0E4054
tetradic
#540E40 #54450E #0E5422 #0E1D54
square
#540E40 #54450E #0E5422 #0E1D54
split-complementary
#540E40 #1D540E #0E5445
monochromatic
#1A0414 #200518 #540E40 #881768 #BD1F90

Accessibility & contrast

On white

13.87
#540E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#540E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E40
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E40#FFFFFF#000000##FFFFFF
##540E401.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152541
Deuteranopia (green-blind)
#2B313E
Tritanopia (blue-blind)
#5A0F26
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540e40;
/* rgb */ color: rgb(84, 14, 64);
/* oklch */ color: oklch(31.0% 0.115 342.3);
Tailwind
colors: {
  custom: {
    50: '#875575',
    500: '#540e40',
    950: '#000000',
  },
}
SCSS
$custom: #540e40;
$custom-light: #875575;
$custom-dark: #000000;
JSON
{
  "hex": "#540e40",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 64
  },
  "hsl": {
    "h": 317.143,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31039,
    "c": 0.11522,
    "h": 342.3
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#540E40
secondary
#2F8E4B
accent
#EE6D3A
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540E40

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

Preview Lab → · Contrast checker → · Palette generator →

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