#540D43#540D43

#540D43 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.1% C 0.118 H 339.9°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#540D43
RGBrgb(84, 13, 67)
HSLhsl(314, 73%, 19%)
HSVhsv(314, 85%, 33%)
CMYKcmyk(0%, 84.5%, 20.2%, 67.1%)
CIE-LABlab(18.27, 37.27, -15.08)
CIE-LCHlch(18.27, 40.21, 337.97°)
OKLaboklab(31.12% 0.1113 -0.0408)
OKLCHoklch(31.12% 0.119 339.9)
XYZxyz(4.8133, 2.5784, 5.5533)
Luminance0.0258 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D43 #0D541E
analogous
#420D54 #540D43 #540D20
triadic
#540D43 #43540D #0D4354
tetradic
#540D43 #54420D #0D541E #0D2054
square
#540D43 #54420D #0D541E #0D2054
split-complementary
#540D43 #20540D #0D5442
monochromatic
#1A0415 #1F0519 #540D43 #89156D #BE1D98

Accessibility & contrast

On white

13.86
#540D43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#540D43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D43
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D43#FFFFFF#000000##FFFFFF
##540D431.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122544
Deuteranopia (green-blind)
#2A3141
Tritanopia (blue-blind)
#591027
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540d43;
/* rgb */ color: rgb(84, 13, 67);
/* oklch */ color: oklch(31.1% 0.118 339.9);
Tailwind
colors: {
  custom: {
    50: '#875577',
    500: '#540d43',
    950: '#000000',
  },
}
SCSS
$custom: #540d43;
$custom-light: #875577;
$custom-dark: #000000;
JSON
{
  "hex": "#540d43",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 67
  },
  "hsl": {
    "h": 314.366,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31118,
    "c": 0.1185,
    "h": 339.9
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#540D43
secondary
#2E8F45
accent
#F06438
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540D43

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

Preview Lab → · Contrast checker → · Palette generator →

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