#540C2C#540C2C

#540C2C is a dark, moderate pink. Relative luminance 0.023; OKLCH L 30.0% C 0.106 H 359.5°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#540C2C
RGBrgb(84, 12, 44)
HSLhsl(333, 75%, 19%)
HSVhsv(333, 86%, 33%)
CMYKcmyk(0%, 85.7%, 47.6%, 67.1%)
CIE-LABlab(17.13, 34.55, -0.53)
CIE-LCHlch(17.13, 34.56, 359.12°)
OKLaboklab(29.96% 0.1062 -0.001)
OKLCHoklch(29.96% 0.106 359.5)
XYZxyz(4.2426, 2.3302, 2.6087)
Luminance0.0233 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C2C #0C5434
analogous
#540C50 #540C2C #54100C
triadic
#540C2C #2C540C #0C2C54
tetradic
#540C2C #50540C #0C5434 #100C54
square
#540C2C #50540C #0C5434 #100C54
split-complementary
#540C2C #0C5410 #0C5054
monochromatic
#1B040E #1E0410 #540C2C #8A1448 #BF1B64

Accessibility & contrast

On white

14.32
#540C2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#540C2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540C2C
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C2C#FFFFFF#000000##FFFFFF
##540C2C1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D212D
Deuteranopia (green-blind)
#302F2A
Tritanopia (blue-blind)
#5C011A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540c2c;
/* rgb */ color: rgb(84, 12, 44);
/* oklch */ color: oklch(30.0% 0.106 359.5);
Tailwind
colors: {
  custom: {
    50: '#885464',
    500: '#540c2c',
    950: '#000000',
  },
}
SCSS
$custom: #540c2c;
$custom-light: #885464;
$custom-dark: #000000;
JSON
{
  "hex": "#540c2c",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 44
  },
  "hsl": {
    "h": 333.333,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29958,
    "c": 0.10622,
    "h": 359.5
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

primary
#540C2C
secondary
#2D8F63
accent
#F29E36
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0305
muted
#7D787A

Preview Lab

Preview with #540C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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