#540F48#540F48

#540F48 is a dark, vivid pink. Relative luminance 0.027; OKLCH L 31.6% C 0.120 H 336.2°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#540F48
RGBrgb(84, 15, 72)
HSLhsl(310, 70%, 19%)
HSVhsv(310, 82%, 33%)
CMYKcmyk(0%, 82.1%, 14.3%, 67.1%)
CIE-LABlab(18.78, 37.40, -17.75)
CIE-LCHlch(18.78, 41.40, 334.62°)
OKLaboklab(31.57% 0.1098 -0.0484)
OKLCHoklch(31.57% 0.12 336.2)
XYZxyz(4.9968, 2.6948, 6.3866)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F48 #0F541B
analogous
#3E0F54 #540F48 #540F26
triadic
#540F48 #48540F #0F4854
tetradic
#540F48 #543E0F #0F541B #0F2654
square
#540F48 #543E0F #0F541B #0F2654
split-complementary
#540F48 #26540F #0F543E
monochromatic
#1A0516 #20061B #540F48 #881875 #BC22A1

Accessibility & contrast

On white

13.65
#540F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#540F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F48
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F48#FFFFFF#000000##FFFFFF
##540F481.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10274A
Deuteranopia (green-blind)
#293146
Tritanopia (blue-blind)
#59142A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540f48;
/* rgb */ color: rgb(84, 15, 72);
/* oklch */ color: oklch(31.6% 0.120 336.2);
Tailwind
colors: {
  custom: {
    50: '#87567b',
    500: '#540f48',
    950: '#000000',
  },
}
SCSS
$custom: #540f48;
$custom-light: #87567b;
$custom-dark: #000000;
JSON
{
  "hex": "#540f48",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 310.435,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31573,
    "c": 0.12003,
    "h": 336.2
  },
  "luminance": 0.02694
}

Semantic roles & 50–950 ramp

primary
#540F48
secondary
#318E41
accent
#ED5A3B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540F48

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

Preview Lab → · Contrast checker → · Palette generator →

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