#540F28#540F28

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

Color values

HEX#540F28
RGBrgb(84, 15, 40)
HSLhsl(338, 70%, 19%)
HSVhsv(338, 82%, 33%)
CMYKcmyk(0%, 82.1%, 52.4%, 67.1%)
CIE-LABlab(17.37, 33.09, 2.69)
CIE-LCHlch(17.37, 33.20, 4.65°)
OKLaboklab(30.09% 0.1013 0.0072)
OKLCHoklch(30.09% 0.102 4.1)
XYZxyz(4.2103, 2.3802, 2.2448)
Luminance0.0238 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F28 #0F543B
analogous
#540F4B #540F28 #54190F
triadic
#540F28 #28540F #0F2854
tetradic
#540F28 #4B540F #0F543B #190F54
square
#540F28 #4B540F #0F543B #190F54
split-complementary
#540F28 #0F5419 #0F4B54
monochromatic
#1A050C #20060F #540F28 #881841 #BC2259

Accessibility & contrast

On white

14.23
#540F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#540F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F28
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F28#FFFFFF#000000##FFFFFF
##540F281.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202229
Deuteranopia (green-blind)
#323026
Tritanopia (blue-blind)
#5C021A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540f28;
/* rgb */ color: rgb(84, 15, 40);
/* oklch */ color: oklch(30.1% 0.102 4.1);
Tailwind
colors: {
  custom: {
    50: '#885561',
    500: '#540f28',
    950: '#000000',
  },
}
SCSS
$custom: #540f28;
$custom-light: #885561;
$custom-dark: #000000;
JSON
{
  "hex": "#540f28",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 40
  },
  "hsl": {
    "h": 338.261,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30087,
    "c": 0.10154,
    "h": 4.1
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#540F28
secondary
#318E6C
accent
#EDAC3B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540F28

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

Preview Lab → · Contrast checker → · Palette generator →

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