#4C540F#4C540F

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

Color values

HEX#4C540F
RGBrgb(76, 84, 15)
HSLhsl(67, 70%, 19%)
HSVhsv(67, 82%, 33%)
CMYKcmyk(9.5%, 0%, 82.1%, 67.1%)
CIE-LABlab(33.80, -12.97, 36.36)
CIE-LCHlch(33.80, 38.61, 109.63°)
OKLaboklab(42.49% -0.0394 0.0799)
OKLCHoklch(42.49% 0.089 116.2)
XYZxyz(6.2372, 7.9117, 1.6504)
Luminance0.0791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C540F #170F54
analogous
#543A0F #4C540F #29540F
triadic
#4C540F #0F4C54 #540F4C
tetradic
#4C540F #0F543A #170F54 #540F29
square
#4C540F #0F543A #170F54 #540F29
split-complementary
#4C540F #0F2954 #3A0F54
monochromatic
#171A05 #1D2006 #4C540F #7B8818 #AABC22

Accessibility & contrast

On white

8.13
#4C540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C540F
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C540F#FFFFFF#000000##FFFFFF
##4C540F1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c540f;
/* rgb */ color: rgb(76, 84, 15);
/* oklch */ color: oklch(42.5% 0.089 116.2);
Tailwind
colors: {
  custom: {
    50: '#818454',
    500: '#4c540f',
    950: '#000000',
  },
}
SCSS
$custom: #4c540f;
$custom-light: #818454;
$custom-dark: #000000;
JSON
{
  "hex": "#4c540f",
  "rgb": {
    "r": 76,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 66.957,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.42486,
    "c": 0.08912,
    "h": 116.2
  },
  "luminance": 0.07912
}

Semantic roles & 50–950 ramp

primary
#4C540F
secondary
#3C318E
accent
#3BED50
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4C540F

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

Preview Lab → · Contrast checker → · Palette generator →

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