#540D3F#540D3F

#540D3F is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.9% C 0.116 H 343.0°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#540D3F
RGBrgb(84, 13, 63)
HSLhsl(318, 73%, 19%)
HSVhsv(318, 85%, 33%)
CMYKcmyk(0%, 84.5%, 25%, 67.1%)
CIE-LABlab(18.06, 36.67, -12.62)
CIE-LCHlch(18.06, 38.78, 341.01°)
OKLaboklab(30.9% 0.1106 -0.0338)
OKLCHoklch(30.9% 0.116 343)
XYZxyz(4.6975, 2.5320, 4.9430)
Luminance0.0253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D3F #0D5422
analogous
#460D54 #540D3F #540D1C
triadic
#540D3F #3F540D #0D3F54
tetradic
#540D3F #54460D #0D5422 #0D1C54
square
#540D3F #54460D #0D5422 #0D1C54
split-complementary
#540D3F #1C540D #0D5446
monochromatic
#1A0414 #1F0517 #540D3F #891567 #BE1D8E

Accessibility & contrast

On white

13.94
#540D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D3F
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D3F#FFFFFF#000000##FFFFFF
##540D3F1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152540
Deuteranopia (green-blind)
#2C303D
Tritanopia (blue-blind)
#5A0D25
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540d3f;
/* rgb */ color: rgb(84, 13, 63);
/* oklch */ color: oklch(30.9% 0.116 343.0);
Tailwind
colors: {
  custom: {
    50: '#875574',
    500: '#540d3f',
    950: '#000000',
  },
}
SCSS
$custom: #540d3f;
$custom-light: #875574;
$custom-dark: #000000;
JSON
{
  "hex": "#540d3f",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 317.746,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30901,
    "c": 0.11565,
    "h": 343
  },
  "luminance": 0.02532
}

Semantic roles & 50–950 ramp

primary
#540D3F
secondary
#2E8F4B
accent
#F06E38
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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