#4C7216#4C7216

#4C7216 is a mid, vivid yellow-green. Relative luminance 0.136; OKLCH L 50.5% C 0.125 H 130.1°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#4C7216
RGBrgb(76, 114, 22)
HSLhsl(85, 68%, 27%)
HSVhsv(85, 81%, 45%)
CMYKcmyk(33.3%, 0%, 80.7%, 55.3%)
CIE-LABlab(43.70, -28.22, 43.14)
CIE-LCHlch(43.70, 51.55, 123.18°)
OKLaboklab(50.51% -0.0804 0.0955)
OKLCHoklch(50.51% 0.125 130.1)
XYZxyz(9.1426, 13.6288, 2.9078)
Luminance0.1363 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7216 #3C1672
analogous
#726A16 #4C7216 #1E7216
triadic
#4C7216 #164C72 #72164C
tetradic
#4C7216 #16726A #3C1672 #72161E
square
#4C7216 #16726A #3C1672 #72161E
split-complementary
#4C7216 #161E72 #6A1672
monochromatic
#111A05 #2A3F0C #4C7216 #6EA520 #90D62C

Accessibility & contrast

On white

5.64
#4C7216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#4C7216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7216
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7216#FFFFFF#000000##FFFFFF
##4C72161.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#726620
Tritanopia (blue-blind)
#4E6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4c7216;
/* rgb */ color: rgb(76, 114, 22);
/* oklch */ color: oklch(50.5% 0.125 130.1);
Tailwind
colors: {
  custom: {
    50: '#829b5c',
    500: '#4c7216',
    950: '#000000',
  },
}
SCSS
$custom: #4c7216;
$custom-light: #829b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7216",
  "rgb": {
    "r": 76,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 84.783,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.50512,
    "c": 0.12487,
    "h": 130.1
  },
  "luminance": 0.13629
}

Semantic roles & 50–950 ramp

primary
#4C7216
secondary
#693CA8
accent
#3DEB85
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7216

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

Preview Lab → · Contrast checker → · Palette generator →

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