#540F3C#540F3C

#540F3C is a dark, moderate pink. Relative luminance 0.026; OKLCH L 30.9% C 0.111 H 345.7°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#540F3C
RGBrgb(84, 15, 60)
HSLhsl(321, 70%, 19%)
HSVhsv(321, 82%, 33%)
CMYKcmyk(0%, 82.1%, 28.6%, 67.1%)
CIE-LABlab(18.16, 35.54, -10.37)
CIE-LCHlch(18.16, 37.03, 343.73°)
OKLaboklab(30.92% 0.1079 -0.0275)
OKLCHoklch(30.92% 0.111 345.7)
XYZxyz(4.6428, 2.5532, 4.5224)
Luminance0.0255 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F3C #0F5427
analogous
#4A0F54 #540F3C #540F19
triadic
#540F3C #3C540F #0F3C54
tetradic
#540F3C #544A0F #0F5427 #0F1954
square
#540F3C #544A0F #0F5427 #0F1954
split-complementary
#540F3C #19540F #0F544A
monochromatic
#1A0513 #200617 #540F3C #881861 #BC2286

Accessibility & contrast

On white

13.90
#540F3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#540F3C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F3C
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F3C#FFFFFF#000000##FFFFFF
##540F3C1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18253D
Deuteranopia (green-blind)
#2D313A
Tritanopia (blue-blind)
#5A0D24
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540f3c;
/* rgb */ color: rgb(84, 15, 60);
/* oklch */ color: oklch(30.9% 0.111 345.7);
Tailwind
colors: {
  custom: {
    50: '#875671',
    500: '#540f3c',
    950: '#000000',
  },
}
SCSS
$custom: #540f3c;
$custom-light: #875671;
$custom-dark: #000000;
JSON
{
  "hex": "#540f3c",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 60
  },
  "hsl": {
    "h": 320.87,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30922,
    "c": 0.11132,
    "h": 345.7
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

primary
#540F3C
secondary
#318E51
accent
#ED793B
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0307
muted
#7D787A

Preview Lab

Preview with #540F3C

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

Preview Lab → · Contrast checker → · Palette generator →

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