#4C5012#4C5012

#4C5012 is a dark, moderate yellow. Relative luminance 0.073; OKLCH L 41.5% C 0.082 H 113.1°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#4C5012
RGBrgb(76, 80, 18)
HSLhsl(64, 63%, 19%)
HSVhsv(64, 78%, 31%)
CMYKcmyk(5%, 0%, 77.5%, 68.6%)
CIE-LABlab(32.52, -10.51, 33.96)
CIE-LCHlch(32.52, 35.54, 107.20°)
OKLaboklab(41.47% -0.0322 0.0755)
OKLCHoklch(41.47% 0.082 113.1)
XYZxyz(5.9585, 7.3176, 1.6707)
Luminance0.0732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5012 #161250
analogous
#503512 #4C5012 #2D5012
triadic
#4C5012 #124C50 #50124C
tetradic
#4C5012 #125035 #161250 #50122D
square
#4C5012 #125035 #161250 #50122D
split-complementary
#4C5012 #122D50 #351250
monochromatic
#181906 #1D1E07 #4C5012 #7B821D #ABB428

Accessibility & contrast

On white

8.52
#4C5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4C5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C5012
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5012#FFFFFF#000000##FFFFFF
##4C50121.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#574D17
Tritanopia (blue-blind)
#524B44
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4c5012;
/* rgb */ color: rgb(76, 80, 18);
/* oklch */ color: oklch(41.5% 0.082 113.1);
Tailwind
colors: {
  custom: {
    50: '#808055',
    500: '#4c5012',
    950: '#000000',
  },
}
SCSS
$custom: #4c5012;
$custom-light: #808055;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5012",
  "rgb": {
    "r": 76,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 63.871,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41466,
    "c": 0.08206,
    "h": 113.1
  },
  "luminance": 0.07317
}

Semantic roles & 50–950 ramp

primary
#4C5012
secondary
#3A3589
accent
#41E64C
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4C5012

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

Preview Lab → · Contrast checker → · Palette generator →

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