#540E3F#540E3F

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

Color values

HEX#540E3F
RGBrgb(84, 14, 63)
HSLhsl(318, 71%, 19%)
HSVhsv(318, 83%, 33%)
CMYKcmyk(0%, 83.3%, 25%, 67.1%)
CIE-LABlab(18.18, 36.33, -12.44)
CIE-LCHlch(18.18, 38.40, 341.10°)
OKLaboklab(30.99% 0.1096 -0.0333)
OKLCHoklch(30.99% 0.115 343.1)
XYZxyz(4.7106, 2.5583, 4.9474)
Luminance0.0256 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E3F #0E5423
analogous
#460E54 #540E3F #540E1C
triadic
#540E3F #3F540E #0E3F54
tetradic
#540E3F #54460E #0E5423 #0E1C54
square
#540E3F #54460E #0E5423 #0E1C54
split-complementary
#540E3F #1C540E #0E5446
monochromatic
#1A0414 #200518 #540E3F #881766 #BD1F8E

Accessibility & contrast

On white

13.89
#540E3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540E3F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E3F#FFFFFF#000000##FFFFFF
##540E3F1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162540
Deuteranopia (green-blind)
#2C313D
Tritanopia (blue-blind)
#5A0E25
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540e3f;
/* rgb */ color: rgb(84, 14, 63);
/* oklch */ color: oklch(31.0% 0.115 343.1);
Tailwind
colors: {
  custom: {
    50: '#875574',
    500: '#540e3f',
    950: '#000000',
  },
}
SCSS
$custom: #540e3f;
$custom-light: #875574;
$custom-dark: #000000;
JSON
{
  "hex": "#540e3f",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 63
  },
  "hsl": {
    "h": 318,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.30986,
    "c": 0.11452,
    "h": 343.1
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#540E3F
secondary
#2F8E4C
accent
#EE703A
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540E3F

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

Preview Lab → · Contrast checker → · Palette generator →

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