#54510F#54510F

#54510F is a dark, moderate yellow. Relative luminance 0.078; OKLCH L 42.5% C 0.083 H 106.8°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#54510F
RGBrgb(84, 81, 15)
HSLhsl(57, 70%, 19%)
HSVhsv(57, 82%, 33%)
CMYKcmyk(0%, 3.6%, 82.1%, 67.1%)
CIE-LABlab(33.57, -7.28, 36.42)
CIE-LCHlch(33.57, 37.14, 101.31°)
OKLaboklab(42.49% -0.024 0.0797)
OKLCHoklch(42.49% 0.083 106.8)
XYZxyz(6.6851, 7.8044, 1.6061)
Luminance0.0780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54510F #0F1254
analogous
#542F0F #54510F #35540F
triadic
#54510F #0F5451 #510F54
tetradic
#54510F #0F542F #0F1254 #540F35
square
#54510F #0F542F #0F1254 #540F35
split-complementary
#54510F #0F3554 #2F0F54
monochromatic
#1A1905 #201F06 #54510F #888318 #BCB522

Accessibility & contrast

On white

8.20
#54510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#54510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54510F
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54510F#FFFFFF#000000##FFFFFF
##54510F1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E02
Deuteranopia (green-blind)
#5A5014
Tritanopia (blue-blind)
#5B4B45
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #54510f;
/* rgb */ color: rgb(84, 81, 15);
/* oklch */ color: oklch(42.5% 0.083 106.8);
Tailwind
colors: {
  custom: {
    50: '#878154',
    500: '#54510f',
    950: '#000000',
  },
}
SCSS
$custom: #54510f;
$custom-light: #878154;
$custom-dark: #000000;
JSON
{
  "hex": "#54510f",
  "rgb": {
    "r": 84,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 57.391,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.42485,
    "c": 0.08328,
    "h": 106.8
  },
  "luminance": 0.07804
}

Semantic roles & 50–950 ramp

primary
#54510F
secondary
#31358E
accent
#43ED3B
background
#F8F7F5
surface
#F0EEE8
border
#CBC9C4
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #54510F

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

Preview Lab → · Contrast checker → · Palette generator →

#54510F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva