#540F30#540F30

#540F30 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.4% C 0.105 H 356.4°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#540F30
RGBrgb(84, 15, 48)
HSLhsl(331, 70%, 19%)
HSVhsv(331, 82%, 33%)
CMYKcmyk(0%, 82.1%, 42.9%, 67.1%)
CIE-LABlab(17.65, 33.97, -2.64)
CIE-LCHlch(17.65, 34.07, 355.55°)
OKLaboklab(30.38% 0.1044 -0.0065)
OKLCHoklch(30.38% 0.105 356.4)
XYZxyz(4.3608, 2.4404, 3.0371)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F30 #0F5433
analogous
#540F53 #540F30 #54100F
triadic
#540F30 #30540F #0F3054
tetradic
#540F30 #53540F #0F5433 #100F54
square
#540F30 #53540F #0F5433 #100F54
split-complementary
#540F30 #0F5410 #0F5354
monochromatic
#1A050F #200612 #540F30 #88184E #BC226B

Accessibility & contrast

On white

14.11
#540F30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#540F30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F30
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F30#FFFFFF#000000##FFFFFF
##540F301.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2331
Deuteranopia (green-blind)
#30302E
Tritanopia (blue-blind)
#5B061E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540f30;
/* rgb */ color: rgb(84, 15, 48);
/* oklch */ color: oklch(30.4% 0.105 356.4);
Tailwind
colors: {
  custom: {
    50: '#885568',
    500: '#540f30',
    950: '#000000',
  },
}
SCSS
$custom: #540f30;
$custom-light: #885568;
$custom-dark: #000000;
JSON
{
  "hex": "#540f30",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 48
  },
  "hsl": {
    "h": 331.304,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30383,
    "c": 0.10455,
    "h": 356.4
  },
  "luminance": 0.0244
}

Semantic roles & 50–950 ramp

primary
#540F30
secondary
#318E61
accent
#ED983B
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0306
muted
#7D787A

Preview Lab

Preview with #540F30

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

Preview Lab → · Contrast checker → · Palette generator →

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