#4C7816#4C7816

#4C7816 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.1% C 0.133 H 131.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#4C7816
RGBrgb(76, 120, 22)
HSLhsl(87, 69%, 28%)
HSVhsv(87, 82%, 47%)
CMYKcmyk(36.7%, 0%, 81.7%, 52.9%)
CIE-LABlab(45.67, -31.03, 44.99)
CIE-LCHlch(45.67, 54.66, 124.60°)
OKLaboklab(52.12% -0.088 0.0994)
OKLCHoklch(52.12% 0.133 131.5)
XYZxyz(9.8417, 15.0270, 3.1409)
Luminance0.1503 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7816 #421678
analogous
#787316 #4C7816 #1B7816
triadic
#4C7816 #164C78 #78164C
tetradic
#4C7816 #167873 #421678 #78161B
square
#4C7816 #167873 #421678 #78161B
split-complementary
#4C7816 #161B78 #731678
monochromatic
#101A05 #2B440D #4C7816 #6DAC1F #8DD92F

Accessibility & contrast

On white

5.24
#4C7816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#4C7816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7816
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7816#FFFFFF#000000##FFFFFF
##4C78161.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#786B21
Tritanopia (blue-blind)
#4D7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4c7816;
/* rgb */ color: rgb(76, 120, 22);
/* oklch */ color: oklch(52.1% 0.133 131.5);
Tailwind
colors: {
  custom: {
    50: '#829f5c',
    500: '#4c7816',
    950: '#000000',
  },
}
SCSS
$custom: #4c7816;
$custom-light: #829f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7816",
  "rgb": {
    "r": 76,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 86.939,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52123,
    "c": 0.13278,
    "h": 131.5
  },
  "luminance": 0.15027
}

Semantic roles & 50–950 ramp

primary
#4C7816
secondary
#6F3CAD
accent
#3CEC8B
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7816

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

Preview Lab → · Contrast checker → · Palette generator →

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