#540C27#540C27

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

Color values

HEX#540C27
RGBrgb(84, 12, 39)
HSLhsl(338, 75%, 19%)
HSVhsv(338, 86%, 33%)
CMYKcmyk(0%, 85.7%, 53.6%, 67.1%)
CIE-LABlab(16.96, 34.04, 2.83)
CIE-LCHlch(16.96, 34.16, 4.76°)
OKLaboklab(29.78% 0.1043 0.0076)
OKLCHoklch(29.78% 0.105 4.2)
XYZxyz(4.1542, 2.2948, 2.1433)
Luminance0.0229 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C27 #0C5439
analogous
#540C4B #540C27 #54150C
triadic
#540C27 #27540C #0C2754
tetradic
#540C27 #4B540C #0C5439 #150C54
square
#540C27 #4B540C #0C5439 #150C54
split-complementary
#540C27 #0C5415 #0C4B54
monochromatic
#1B040C #1E040E #540C27 #8A1440 #BF1B59

Accessibility & contrast

On white

14.40
#540C27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540C27
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C27#FFFFFF#000000##FFFFFF
##540C271.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540c27;
/* rgb */ color: rgb(84, 12, 39);
/* oklch */ color: oklch(29.8% 0.105 4.2);
Tailwind
colors: {
  custom: {
    50: '#895460',
    500: '#540c27',
    950: '#000000',
  },
}
SCSS
$custom: #540c27;
$custom-light: #895460;
$custom-dark: #000000;
JSON
{
  "hex": "#540c27",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 39
  },
  "hsl": {
    "h": 337.5,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29779,
    "c": 0.10452,
    "h": 4.2
  },
  "luminance": 0.02294
}

Semantic roles & 50–950 ramp

primary
#540C27
secondary
#2D8F6A
accent
#F2AB36
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540C27

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

Preview Lab → · Contrast checker → · Palette generator →

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