#540F3F#540F3F

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

Color values

HEX#540F3F
RGBrgb(84, 15, 63)
HSLhsl(318, 70%, 19%)
HSVhsv(318, 82%, 33%)
CMYKcmyk(0%, 82.1%, 25%, 67.1%)
CIE-LABlab(18.30, 35.99, -12.25)
CIE-LCHlch(18.30, 38.01, 341.20°)
OKLaboklab(31.08% 0.1085 -0.0328)
OKLCHoklch(31.08% 0.113 343.2)
XYZxyz(4.7244, 2.5858, 4.9520)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F3F #0F5424
analogous
#470F54 #540F3F #540F1D
triadic
#540F3F #3F540F #0F3F54
tetradic
#540F3F #54470F #0F5424 #0F1D54
square
#540F3F #54470F #0F5424 #0F1D54
split-complementary
#540F3F #1D540F #0F5447
monochromatic
#1A0513 #200618 #540F3F #881866 #BC228D

Accessibility & contrast

On white

13.84
#540F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F3F
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F3F#FFFFFF#000000##FFFFFF
##540F3F1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172540
Deuteranopia (green-blind)
#2C313D
Tritanopia (blue-blind)
#5A0F25
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540f3f;
/* rgb */ color: rgb(84, 15, 63);
/* oklch */ color: oklch(31.1% 0.113 343.2);
Tailwind
colors: {
  custom: {
    50: '#875674',
    500: '#540f3f',
    950: '#000000',
  },
}
SCSS
$custom: #540f3f;
$custom-light: #875674;
$custom-dark: #000000;
JSON
{
  "hex": "#540f3f",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 318.261,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31075,
    "c": 0.11335,
    "h": 343.2
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#540F3F
secondary
#318E4D
accent
#ED713B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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