#545240#545240

#545240 is a dark, muted yellow. Relative luminance 0.083; OKLCH L 43.5% C 0.028 H 102.2°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#545240
RGBrgb(84, 82, 64)
HSLhsl(54, 14%, 29%)
HSVhsv(54, 24%, 33%)
CMYKcmyk(0%, 2.4%, 23.8%, 67.1%)
CIE-LABlab(34.58, -2.62, 10.89)
CIE-LCHlch(34.58, 11.20, 103.51°)
OKLaboklab(43.51% -0.006 0.0278)
OKLCHoklch(43.51% 0.028 102.2)
XYZxyz(7.5988, 8.2897, 6.0493)
Luminance0.0829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545240 #404254
analogous
#544840 #545240 #4C5440
triadic
#545240 #405452 #524054
tetradic
#545240 #405448 #404254 #54404C
square
#545240 #405448 #404254 #54404C
split-complementary
#545240 #404C54 #484054
monochromatic
#11110D #313026 #545240 #77745A #979477

Accessibility & contrast

On white

7.90
#545240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#545240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #545240
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545240#FFFFFF#000000##FFFFFF
##5452401.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#55513F
Deuteranopia (green-blind)
#565241
Tritanopia (blue-blind)
#574F4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #545240;
/* rgb */ color: rgb(84, 82, 64);
/* oklch */ color: oklch(43.5% 0.028 102.2);
Tailwind
colors: {
  custom: {
    50: '#848274',
    500: '#545240',
    950: '#000000',
  },
}
SCSS
$custom: #545240;
$custom-light: #848274;
$custom-dark: #000000;
JSON
{
  "hex": "#545240",
  "rgb": {
    "r": 84,
    "g": 82,
    "b": 64
  },
  "hsl": {
    "h": 54,
    "s": 13.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.4351,
    "c": 0.02841,
    "h": 102.2
  },
  "luminance": 0.0829
}

Semantic roles & 50–950 ramp

primary
#545240
secondary
#6D6F83
accent
#78B671
background
#F8F7F7
surface
#EFEEED
border
#CAC9C8
text
#0B0A08
muted
#7C7C7B

Preview Lab

Preview with #545240

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

Preview Lab → · Contrast checker → · Palette generator →

#545240 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva