#54501B#54501B

#54501B is a dark, moderate yellow. Relative luminance 0.077; OKLCH L 42.3% C 0.073 H 105.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#54501B
RGBrgb(84, 80, 27)
HSLhsl(56, 51%, 22%)
HSVhsv(56, 68%, 33%)
CMYKcmyk(0%, 4.8%, 67.9%, 67.1%)
CIE-LABlab(33.35, -5.95, 30.87)
CIE-LCHlch(33.35, 31.44, 100.91°)
OKLaboklab(42.34% -0.0188 0.0704)
OKLCHoklch(42.34% 0.073 105)
XYZxyz(6.7229, 7.7015, 2.1691)
Luminance0.0770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54501B #1B1F54
analogous
#54341B #54501B #3C541B
triadic
#54501B #1B5450 #501B54
tetradic
#54501B #1B5434 #1B1F54 #541B3C
square
#54501B #1B5434 #1B1F54 #541B3C
split-complementary
#54501B #1B3C54 #341B54
monochromatic
#171607 #26240C #54501B #827C2A #B1A839

Accessibility & contrast

On white

8.27
#54501B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#54501B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54501B
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54501B#FFFFFF#000000##FFFFFF
##54501B1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D15
Deuteranopia (green-blind)
#59501E
Tritanopia (blue-blind)
#5A4A45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #54501b;
/* rgb */ color: rgb(84, 80, 27);
/* oklch */ color: oklch(42.3% 0.073 105.0);
Tailwind
colors: {
  custom: {
    50: '#86805a',
    500: '#54501b',
    950: '#000000',
  },
}
SCSS
$custom: #54501b;
$custom-light: #86805a;
$custom-dark: #000000;
JSON
{
  "hex": "#54501b",
  "rgb": {
    "r": 84,
    "g": 80,
    "b": 27
  },
  "hsl": {
    "h": 55.789,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42341,
    "c": 0.07285,
    "h": 105
  },
  "luminance": 0.07701
}

Semantic roles & 50–950 ramp

primary
#54501B
secondary
#41468A
accent
#57DB4D
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #54501B

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

Preview Lab → · Contrast checker → · Palette generator →

#54501B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva