#4C540E#4C540E

#4C540E 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.13:1 contrast (WCAG AA passes).

Color values

HEX#4C540E
RGBrgb(76, 84, 14)
HSLhsl(67, 71%, 19%)
HSVhsv(67, 83%, 33%)
CMYKcmyk(9.5%, 0%, 83.3%, 67.1%)
CIE-LABlab(33.79, -13.02, 36.72)
CIE-LCHlch(33.79, 38.96, 109.53°)
OKLaboklab(42.48% -0.0396 0.0805)
OKLCHoklch(42.48% 0.09 116.2)
XYZxyz(6.2302, 7.9089, 1.6138)
Luminance0.0791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C540E #160E54
analogous
#54390E #4C540E #29540E
triadic
#4C540E #0E4C54 #540E4C
tetradic
#4C540E #0E5439 #160E54 #540E29
square
#4C540E #0E5439 #160E54 #540E29
split-complementary
#4C540E #0E2954 #390E54
monochromatic
#181A04 #1D2005 #4C540E #7B8817 #ABBD1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C540E#FFFFFF#000000##FFFFFF
##4C540E1.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)
#5A4F00
Deuteranopia (green-blind)
#5A5014
Tritanopia (blue-blind)
#514F47
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c540e;
/* rgb */ color: rgb(76, 84, 14);
/* oklch */ color: oklch(42.5% 0.090 116.2);
Tailwind
colors: {
  custom: {
    50: '#818453',
    500: '#4c540e',
    950: '#000000',
  },
}
SCSS
$custom: #4c540e;
$custom-light: #818453;
$custom-dark: #000000;
JSON
{
  "hex": "#4c540e",
  "rgb": {
    "r": 76,
    "g": 84,
    "b": 14
  },
  "hsl": {
    "h": 66.857,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.42479,
    "c": 0.08972,
    "h": 116.2
  },
  "luminance": 0.07909
}

Semantic roles & 50–950 ramp

primary
#4C540E
secondary
#3A2F8E
accent
#3AEE4E
background
#F8F8F4
surface
#EFEFE8
border
#CACAC4
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4C540E

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

Preview Lab → · Contrast checker → · Palette generator →

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