#4C7922#4C7922

#4C7922 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.5% C 0.127 H 132.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#4C7922
RGBrgb(76, 121, 34)
HSLhsl(91, 56%, 30%)
HSVhsv(91, 72%, 47%)
CMYKcmyk(37.2%, 0%, 71.9%, 52.5%)
CIE-LABlab(46.08, -30.70, 40.89)
CIE-LCHlch(46.08, 51.13, 126.90°)
OKLaboklab(52.48% -0.0862 0.0927)
OKLCHoklch(52.48% 0.127 132.9)
XYZxyz(10.1064, 15.3263, 3.9388)
Luminance0.1533 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7922 #4F2279
analogous
#787922 #4C7922 #227923
triadic
#4C7922 #224C79 #79224C
tetradic
#4C7922 #227879 #4F2279 #792322
square
#4C7922 #227879 #4F2279 #792322
split-complementary
#4C7922 #232279 #792278
monochromatic
#101907 #2E4915 #4C7922 #6AA92F #88CC49

Accessibility & contrast

On white

5.17
#4C7922 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#4C7922 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7922
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7922#FFFFFF#000000##FFFFFF
##4C79221.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F15
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#4C7468
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4c7922;
/* rgb */ color: rgb(76, 121, 34);
/* oklch */ color: oklch(52.5% 0.127 132.9);
Tailwind
colors: {
  custom: {
    50: '#82a063',
    500: '#4c7922',
    950: '#000000',
  },
}
SCSS
$custom: #4c7922;
$custom-light: #82a063;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7922",
  "rgb": {
    "r": 76,
    "g": 121,
    "b": 34
  },
  "hsl": {
    "h": 91.034,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52481,
    "c": 0.1266,
    "h": 132.9
  },
  "luminance": 0.15327
}

Semantic roles & 50–950 ramp

primary
#4C7922
secondary
#7D4BAC
accent
#48DF97
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E05
muted
#7C7E7A

Preview Lab

Preview with #4C7922

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

Preview Lab → · Contrast checker → · Palette generator →

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