#540C29#540C29

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

Color values

HEX#540C29
RGBrgb(84, 12, 41)
HSLhsl(336, 75%, 19%)
HSVhsv(336, 86%, 33%)
CMYKcmyk(0%, 85.7%, 51.2%, 67.1%)
CIE-LABlab(17.03, 34.24, 1.48)
CIE-LCHlch(17.03, 34.27, 2.48°)
OKLaboklab(29.85% 0.1051 0.0042)
OKLCHoklch(29.85% 0.105 2.3)
XYZxyz(4.1882, 2.3084, 2.3224)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C29 #0C5437
analogous
#540C4D #540C29 #54130C
triadic
#540C29 #29540C #0C2954
tetradic
#540C29 #4D540C #0C5437 #130C54
square
#540C29 #4D540C #0C5437 #130C54
split-complementary
#540C29 #0C5413 #0C4D54
monochromatic
#1B040D #1E040F #540C29 #8A1443 #BF1B5D

Accessibility & contrast

On white

14.37
#540C29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540C29
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C29#FFFFFF#000000##FFFFFF
##540C291.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540c29;
/* rgb */ color: rgb(84, 12, 41);
/* oklch */ color: oklch(29.8% 0.105 2.3);
Tailwind
colors: {
  custom: {
    50: '#885462',
    500: '#540c29',
    950: '#000000',
  },
}
SCSS
$custom: #540c29;
$custom-light: #885462;
$custom-dark: #000000;
JSON
{
  "hex": "#540c29",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 41
  },
  "hsl": {
    "h": 335.833,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29848,
    "c": 0.10514,
    "h": 2.3
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#540C29
secondary
#2D8F67
accent
#F2A636
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540C29

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

Preview Lab → · Contrast checker → · Palette generator →

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