#540F42#540F42

#540F42 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.2% C 0.115 H 340.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#540F42
RGBrgb(84, 15, 66)
HSLhsl(316, 70%, 19%)
HSVhsv(316, 82%, 33%)
CMYKcmyk(0%, 82.1%, 21.4%, 67.1%)
CIE-LABlab(18.45, 36.44, -14.10)
CIE-LCHlch(18.45, 39.07, 338.84°)
OKLaboklab(31.23% 0.1091 -0.038)
OKLCHoklch(31.23% 0.115 340.8)
XYZxyz(4.8105, 2.6203, 5.4056)
Luminance0.0262 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F42 #0F5421
analogous
#440F54 #540F42 #540F20
triadic
#540F42 #42540F #0F4254
tetradic
#540F42 #54440F #0F5421 #0F2054
square
#540F42 #54440F #0F5421 #0F2054
split-complementary
#540F42 #20540F #0F5444
monochromatic
#1A0514 #200619 #540F42 #88186B #BC2294

Accessibility & contrast

On white

13.78
#540F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F42
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F42#FFFFFF#000000##FFFFFF
##540F421.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152643
Deuteranopia (green-blind)
#2B3140
Tritanopia (blue-blind)
#5A1127
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540f42;
/* rgb */ color: rgb(84, 15, 66);
/* oklch */ color: oklch(31.2% 0.115 340.8);
Tailwind
colors: {
  custom: {
    50: '#875676',
    500: '#540f42',
    950: '#000000',
  },
}
SCSS
$custom: #540f42;
$custom-light: #875676;
$custom-dark: #000000;
JSON
{
  "hex": "#540f42",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 315.652,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31234,
    "c": 0.11549,
    "h": 340.8
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#540F42
secondary
#318E49
accent
#ED6A3B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540F42

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

Preview Lab → · Contrast checker → · Palette generator →

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