#4C540D#4C540D

#4C540D is a dark, moderate yellow. Relative luminance 0.079; OKLCH L 42.5% C 0.090 H 116.2°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#4C540D
RGBrgb(76, 84, 13)
HSLhsl(67, 73%, 19%)
HSVhsv(67, 85%, 33%)
CMYKcmyk(9.5%, 0%, 84.5%, 67.1%)
CIE-LABlab(33.79, -13.07, 37.07)
CIE-LCHlch(33.79, 39.31, 109.42°)
OKLaboklab(42.47% -0.0398 0.0811)
OKLCHoklch(42.47% 0.09 116.2)
XYZxyz(6.2236, 7.9063, 1.5789)
Luminance0.0791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C540D #150D54
analogous
#54390D #4C540D #29540D
triadic
#4C540D #0D4C54 #540D4C
tetradic
#4C540D #0D5439 #150D54 #540D29
square
#4C540D #0D5439 #150D54 #540D29
split-complementary
#4C540D #0D2954 #390D54
monochromatic
#181A04 #1C1F05 #4C540D #7C8915 #ACBE1D

Accessibility & contrast

On white

8.14
#4C540D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4C540D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C540D
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C540D#FFFFFF#000000##FFFFFF
##4C540D1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F00
Deuteranopia (green-blind)
#5A5014
Tritanopia (blue-blind)
#514F47
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c540d;
/* rgb */ color: rgb(76, 84, 13);
/* oklch */ color: oklch(42.5% 0.090 116.2);
Tailwind
colors: {
  custom: {
    50: '#818453',
    500: '#4c540d',
    950: '#000000',
  },
}
SCSS
$custom: #4c540d;
$custom-light: #818453;
$custom-dark: #000000;
JSON
{
  "hex": "#4c540d",
  "rgb": {
    "r": 76,
    "g": 84,
    "b": 13
  },
  "hsl": {
    "h": 66.761,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.42473,
    "c": 0.0903,
    "h": 116.2
  },
  "luminance": 0.07906
}

Semantic roles & 50–950 ramp

primary
#4C540D
secondary
#392E8F
accent
#38F04D
background
#F8F8F4
surface
#EFEFE7
border
#CACAC3
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4C540D

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

Preview Lab → · Contrast checker → · Palette generator →

#4C540D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva