#4C540C#4C540C

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

Color values

HEX#4C540C
RGBrgb(76, 84, 12)
HSLhsl(67, 75%, 19%)
HSVhsv(67, 86%, 33%)
CMYKcmyk(9.5%, 0%, 85.7%, 67.1%)
CIE-LABlab(33.78, -13.12, 37.40)
CIE-LCHlch(33.78, 39.64, 109.32°)
OKLaboklab(42.47% -0.04 0.0816)
OKLCHoklch(42.47% 0.091 116.1)
XYZxyz(6.2173, 7.9038, 1.5458)
Luminance0.0790 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C540C #140C54
analogous
#54380C #4C540C #28540C
triadic
#4C540C #0C4C54 #540C4C
tetradic
#4C540C #0C5438 #140C54 #540C28
square
#4C540C #0C5438 #140C54 #540C28
split-complementary
#4C540C #0C2854 #380C54
monochromatic
#181B04 #1C1E04 #4C540C #7C8A14 #ADBF1B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C540C#FFFFFF#000000##FFFFFF
##4C540C1.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)
#5A5013
Tritanopia (blue-blind)
#514F47
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c540c;
/* rgb */ color: rgb(76, 84, 12);
/* oklch */ color: oklch(42.5% 0.091 116.1);
Tailwind
colors: {
  custom: {
    50: '#818452',
    500: '#4c540c',
    950: '#000000',
  },
}
SCSS
$custom: #4c540c;
$custom-light: #818452;
$custom-dark: #000000;
JSON
{
  "hex": "#4c540c",
  "rgb": {
    "r": 76,
    "g": 84,
    "b": 12
  },
  "hsl": {
    "h": 66.667,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.42467,
    "c": 0.09085,
    "h": 116.1
  },
  "luminance": 0.07904
}

Semantic roles & 50–950 ramp

primary
#4C540C
secondary
#382D8F
accent
#36F24B
background
#F8F8F4
surface
#EFEFE7
border
#CACAC3
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4C540C

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

Preview Lab → · Contrast checker → · Palette generator →

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