#540C28#540C28

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

Color values

HEX#540C28
RGBrgb(84, 12, 40)
HSLhsl(337, 75%, 19%)
HSVhsv(337, 86%, 33%)
CMYKcmyk(0%, 85.7%, 52.4%, 67.1%)
CIE-LABlab(17.00, 34.14, 2.16)
CIE-LCHlch(17.00, 34.21, 3.61°)
OKLaboklab(29.81% 0.1047 0.0059)
OKLCHoklch(29.81% 0.105 3.2)
XYZxyz(4.1710, 2.3015, 2.2317)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C28 #0C5438
analogous
#540C4C #540C28 #54140C
triadic
#540C28 #28540C #0C2854
tetradic
#540C28 #4C540C #0C5438 #140C54
square
#540C28 #4C540C #0C5438 #140C54
split-complementary
#540C28 #0C5414 #0C4C54
monochromatic
#1B040D #1E040F #540C28 #8A1442 #BF1B5B

Accessibility & contrast

On white

14.38
#540C28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540C28
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C28#FFFFFF#000000##FFFFFF
##540C281.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2129
Deuteranopia (green-blind)
#312F26
Tritanopia (blue-blind)
#5C0018
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540c28;
/* rgb */ color: rgb(84, 12, 40);
/* oklch */ color: oklch(29.8% 0.105 3.2);
Tailwind
colors: {
  custom: {
    50: '#895461',
    500: '#540c28',
    950: '#000000',
  },
}
SCSS
$custom: #540c28;
$custom-light: #895461;
$custom-dark: #000000;
JSON
{
  "hex": "#540c28",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 40
  },
  "hsl": {
    "h": 336.667,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29813,
    "c": 0.10482,
    "h": 3.2
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#540C28
secondary
#2D8F69
accent
#F2A936
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540C28

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

Preview Lab → · Contrast checker → · Palette generator →

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