#540F47#540F47

#540F47 is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.5% C 0.119 H 337.0°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#540F47
RGBrgb(84, 15, 71)
HSLhsl(311, 70%, 19%)
HSVhsv(311, 82%, 33%)
CMYKcmyk(0%, 82.1%, 15.5%, 67.1%)
CIE-LABlab(18.72, 37.24, -17.15)
CIE-LCHlch(18.72, 40.99, 335.28°)
OKLaboklab(31.51% 0.1097 -0.0467)
OKLCHoklch(31.51% 0.119 337)
XYZxyz(4.9644, 2.6819, 6.2162)
Luminance0.0268 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F47 #0F541C
analogous
#3F0F54 #540F47 #540F25
triadic
#540F47 #47540F #0F4754
tetradic
#540F47 #543F0F #0F541C #0F2554
square
#540F47 #543F0F #0F541C #0F2554
split-complementary
#540F47 #25540F #0F543F
monochromatic
#1A0516 #20061B #540F47 #881873 #BC229F

Accessibility & contrast

On white

13.67
#540F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F47
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F47#FFFFFF#000000##FFFFFF
##540F471.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540f47;
/* rgb */ color: rgb(84, 15, 71);
/* oklch */ color: oklch(31.5% 0.119 337.0);
Tailwind
colors: {
  custom: {
    50: '#87567a',
    500: '#540f47',
    950: '#000000',
  },
}
SCSS
$custom: #540f47;
$custom-light: #87567a;
$custom-dark: #000000;
JSON
{
  "hex": "#540f47",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 311.304,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31515,
    "c": 0.11924,
    "h": 337
  },
  "luminance": 0.02681
}

Semantic roles & 50–950 ramp

primary
#540F47
secondary
#318E42
accent
#ED5D3B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540F47

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

Preview Lab → · Contrast checker → · Palette generator →

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