#540D40#540D40

#540D40 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 31.0% C 0.116 H 342.2°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#540D40
RGBrgb(84, 13, 64)
HSLhsl(317, 73%, 19%)
HSVhsv(317, 85%, 33%)
CMYKcmyk(0%, 84.5%, 23.8%, 67.1%)
CIE-LABlab(18.11, 36.82, -13.24)
CIE-LCHlch(18.11, 39.12, 340.22°)
OKLaboklab(30.95% 0.1108 -0.0356)
OKLCHoklch(30.95% 0.116 342.2)
XYZxyz(4.7257, 2.5433, 5.0915)
Luminance0.0254 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D40 #0D5421
analogous
#450D54 #540D40 #540D1D
triadic
#540D40 #40540D #0D4054
tetradic
#540D40 #54450D #0D5421 #0D1D54
square
#540D40 #54450D #0D5421 #0D1D54
split-complementary
#540D40 #1D540D #0D5445
monochromatic
#1A0414 #1F0518 #540D40 #891568 #BE1D91

Accessibility & contrast

On white

13.92
#540D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D40
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D40#FFFFFF#000000##FFFFFF
##540D401.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540d40;
/* rgb */ color: rgb(84, 13, 64);
/* oklch */ color: oklch(31.0% 0.116 342.2);
Tailwind
colors: {
  custom: {
    50: '#875575',
    500: '#540d40',
    950: '#000000',
  },
}
SCSS
$custom: #540d40;
$custom-light: #875575;
$custom-dark: #000000;
JSON
{
  "hex": "#540d40",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 316.901,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30954,
    "c": 0.11635,
    "h": 342.2
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#540D40
secondary
#2E8F49
accent
#F06C38
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540D40

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

Preview Lab → · Contrast checker → · Palette generator →

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