#540F43#540F43

#540F43 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.3% C 0.116 H 340.0°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#540F43
RGBrgb(84, 15, 67)
HSLhsl(315, 70%, 19%)
HSVhsv(315, 82%, 33%)
CMYKcmyk(0%, 82.1%, 20.2%, 67.1%)
CIE-LABlab(18.51, 36.60, -14.72)
CIE-LCHlch(18.51, 39.44, 338.09°)
OKLaboklab(31.29% 0.1092 -0.0397)
OKLCHoklch(31.29% 0.116 340)
XYZxyz(4.8402, 2.6322, 5.5623)
Luminance0.0263 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F43 #0F5420
analogous
#430F54 #540F43 #540F20
triadic
#540F43 #43540F #0F4354
tetradic
#540F43 #54430F #0F5420 #0F2054
square
#540F43 #54430F #0F5420 #0F2054
split-complementary
#540F43 #20540F #0F5443
monochromatic
#1A0515 #20061A #540F43 #88186C #BC2296

Accessibility & contrast

On white

13.76
#540F43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#540F43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F43
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F43#FFFFFF#000000##FFFFFF
##540F431.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142644
Deuteranopia (green-blind)
#2B3141
Tritanopia (blue-blind)
#591128
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540f43;
/* rgb */ color: rgb(84, 15, 67);
/* oklch */ color: oklch(31.3% 0.116 340.0);
Tailwind
colors: {
  custom: {
    50: '#875677',
    500: '#540f43',
    950: '#000000',
  },
}
SCSS
$custom: #540f43;
$custom-light: #875677;
$custom-dark: #000000;
JSON
{
  "hex": "#540f43",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 67
  },
  "hsl": {
    "h": 314.783,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31289,
    "c": 0.11621,
    "h": 340
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#540F43
secondary
#318E48
accent
#ED673B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540F43

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

Preview Lab → · Contrast checker → · Palette generator →

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