#540E43#540E43

#540E43 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.2% C 0.117 H 339.9°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#540E43
RGBrgb(84, 14, 67)
HSLhsl(315, 71%, 19%)
HSVhsv(315, 83%, 33%)
CMYKcmyk(0%, 83.3%, 20.2%, 67.1%)
CIE-LABlab(18.39, 36.94, -14.90)
CIE-LCHlch(18.39, 39.84, 338.03°)
OKLaboklab(31.2% 0.1103 -0.0403)
OKLCHoklch(31.2% 0.117 339.9)
XYZxyz(4.8265, 2.6046, 5.5577)
Luminance0.0260 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E43 #0E541F
analogous
#420E54 #540E43 #540E20
triadic
#540E43 #43540E #0E4354
tetradic
#540E43 #54420E #0E541F #0E2054
square
#540E43 #54420E #0E541F #0E2054
split-complementary
#540E43 #20540E #0E5442
monochromatic
#1A0415 #200519 #540E43 #88176D #BD1F97

Accessibility & contrast

On white

13.81
#540E43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#540E43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E43
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E43#FFFFFF#000000##FFFFFF
##540E431.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132644
Deuteranopia (green-blind)
#2A3141
Tritanopia (blue-blind)
#591127
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540e43;
/* rgb */ color: rgb(84, 14, 67);
/* oklch */ color: oklch(31.2% 0.117 339.9);
Tailwind
colors: {
  custom: {
    50: '#875677',
    500: '#540e43',
    950: '#000000',
  },
}
SCSS
$custom: #540e43;
$custom-light: #875677;
$custom-dark: #000000;
JSON
{
  "hex": "#540e43",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 67
  },
  "hsl": {
    "h": 314.571,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31201,
    "c": 0.11738,
    "h": 339.9
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#540E43
secondary
#2F8E46
accent
#EE653A
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540E43

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

Preview Lab → · Contrast checker → · Palette generator →

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