#4C7311#4C7311

#4C7311 is a mid, vivid yellow-green. Relative luminance 0.138; OKLCH L 50.8% C 0.129 H 130.0°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#4C7311
RGBrgb(76, 115, 17)
HSLhsl(84, 74%, 26%)
HSVhsv(84, 85%, 45%)
CMYKcmyk(33.9%, 0%, 85.2%, 54.9%)
CIE-LABlab(44.00, -28.94, 45.01)
CIE-LCHlch(44.00, 53.52, 122.74°)
OKLaboklab(50.75% -0.0827 0.0986)
OKLCHoklch(50.75% 0.129 130)
XYZxyz(9.2124, 13.8381, 2.7159)
Luminance0.1384 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7311 #381173
analogous
#736911 #4C7311 #1B7311
triadic
#4C7311 #114C73 #73114C
tetradic
#4C7311 #117369 #381173 #73111B
square
#4C7311 #117369 #381173 #73111B
split-complementary
#4C7311 #111B73 #691173
monochromatic
#121B04 #293E09 #4C7311 #6FA819 #92DE21

Accessibility & contrast

On white

5.57
#4C7311 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#4C7311 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7311
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7311#FFFFFF#000000##FFFFFF
##4C73111.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#73671C
Tritanopia (blue-blind)
#4E6E61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4c7311;
/* rgb */ color: rgb(76, 115, 17);
/* oklch */ color: oklch(50.8% 0.129 130.0);
Tailwind
colors: {
  custom: {
    50: '#829b5a',
    500: '#4c7311',
    950: '#000000',
  },
}
SCSS
$custom: #4c7311;
$custom-light: #829b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7311",
  "rgb": {
    "r": 76,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 83.878,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.50752,
    "c": 0.12873,
    "h": 130
  },
  "luminance": 0.13838
}

Semantic roles & 50–950 ramp

primary
#4C7311
secondary
#6436AA
accent
#37F181
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7311

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

Preview Lab → · Contrast checker → · Palette generator →

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