#540C2A#540C2A

#540C2A is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.9% C 0.105 H 1.3°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#540C2A
RGBrgb(84, 12, 42)
HSLhsl(335, 75%, 19%)
HSVhsv(335, 86%, 33%)
CMYKcmyk(0%, 85.7%, 50%, 67.1%)
CIE-LABlab(17.06, 34.34, 0.81)
CIE-LCHlch(17.06, 34.35, 1.35°)
OKLaboklab(29.88% 0.1055 0.0025)
OKLCHoklch(29.88% 0.105 1.3)
XYZxyz(4.2059, 2.3155, 2.4155)
Luminance0.0232 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C2A #0C5436
analogous
#540C4E #540C2A #54120C
triadic
#540C2A #2A540C #0C2A54
tetradic
#540C2A #4E540C #0C5436 #120C54
square
#540C2A #4E540C #0C5436 #120C54
split-complementary
#540C2A #0C5412 #0C4E54
monochromatic
#1B040D #1E040F #540C2A #8A1445 #BF1B60

Accessibility & contrast

On white

14.35
#540C2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#540C2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540C2A
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C2A#FFFFFF#000000##FFFFFF
##540C2A1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D212B
Deuteranopia (green-blind)
#312F28
Tritanopia (blue-blind)
#5C0019
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540c2a;
/* rgb */ color: rgb(84, 12, 42);
/* oklch */ color: oklch(29.9% 0.105 1.3);
Tailwind
colors: {
  custom: {
    50: '#885463',
    500: '#540c2a',
    950: '#000000',
  },
}
SCSS
$custom: #540c2a;
$custom-light: #885463;
$custom-dark: #000000;
JSON
{
  "hex": "#540c2a",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 42
  },
  "hsl": {
    "h": 335,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29884,
    "c": 0.10549,
    "h": 1.3
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

primary
#540C2A
secondary
#2D8F66
accent
#F2A436
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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