#540F27#540F27

#540F27 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.1% C 0.101 H 5.0°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#540F27
RGBrgb(84, 15, 39)
HSLhsl(339, 70%, 19%)
HSVhsv(339, 82%, 33%)
CMYKcmyk(0%, 82.1%, 53.6%, 67.1%)
CIE-LABlab(17.34, 32.99, 3.37)
CIE-LCHlch(17.34, 33.16, 5.83°)
OKLaboklab(30.05% 0.1009 0.0089)
OKLCHoklch(30.05% 0.101 5)
XYZxyz(4.1936, 2.3735, 2.1564)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F27 #0F543C
analogous
#540F4A #540F27 #54190F
triadic
#540F27 #27540F #0F2754
tetradic
#540F27 #4A540F #0F543C #190F54
square
#540F27 #4A540F #0F543C #190F54
split-complementary
#540F27 #0F5419 #0F4A54
monochromatic
#1A050C #20060F #540F27 #88183F #BC2257

Accessibility & contrast

On white

14.24
#540F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F27
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F27#FFFFFF#000000##FFFFFF
##540F271.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202228
Deuteranopia (green-blind)
#323025
Tritanopia (blue-blind)
#5C0219
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540f27;
/* rgb */ color: rgb(84, 15, 39);
/* oklch */ color: oklch(30.1% 0.101 5.0);
Tailwind
colors: {
  custom: {
    50: '#885560',
    500: '#540f27',
    950: '#000000',
  },
}
SCSS
$custom: #540f27;
$custom-light: #885560;
$custom-dark: #000000;
JSON
{
  "hex": "#540f27",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 39
  },
  "hsl": {
    "h": 339.13,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30053,
    "c": 0.10125,
    "h": 5
  },
  "luminance": 0.02373
}

Semantic roles & 50–950 ramp

primary
#540F27
secondary
#318E6E
accent
#EDAF3B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540F27

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

Preview Lab → · Contrast checker → · Palette generator →

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