#4C7722#4C7722

#4C7722 is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 51.9% C 0.124 H 132.5°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#4C7722
RGBrgb(76, 119, 34)
HSLhsl(90, 56%, 30%)
HSVhsv(90, 71%, 47%)
CMYKcmyk(36.1%, 0%, 71.4%, 53.3%)
CIE-LABlab(45.42, -29.76, 40.21)
CIE-LCHlch(45.42, 50.02, 126.51°)
OKLaboklab(51.94% -0.0836 0.0913)
OKLCHoklch(51.94% 0.124 132.5)
XYZxyz(9.8659, 14.8452, 3.8587)
Luminance0.1485 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7722 #4D2277
analogous
#777722 #4C7722 #227722
triadic
#4C7722 #224C77 #77224C
tetradic
#4C7722 #227777 #4D2277 #772222
square
#4C7722 #227777 #4D2277 #772222
split-complementary
#4C7722 #222277 #772277
monochromatic
#0F1807 #2E4714 #4C7722 #6AA730 #89CB49

Accessibility & contrast

On white

5.29
#4C7722 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#4C7722 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7722
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7722#FFFFFF#000000##FFFFFF
##4C77221.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E15
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#4D7266
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4c7722;
/* rgb */ color: rgb(76, 119, 34);
/* oklch */ color: oklch(51.9% 0.124 132.5);
Tailwind
colors: {
  custom: {
    50: '#829e62',
    500: '#4c7722',
    950: '#000000',
  },
}
SCSS
$custom: #4c7722;
$custom-light: #829e62;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7722",
  "rgb": {
    "r": 76,
    "g": 119,
    "b": 34
  },
  "hsl": {
    "h": 90.353,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.51945,
    "c": 0.12383,
    "h": 132.5
  },
  "luminance": 0.14846
}

Semantic roles & 50–950 ramp

primary
#4C7722
secondary
#7B4BAA
accent
#49DF95
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E05
muted
#7C7E7A

Preview Lab

Preview with #4C7722

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

Preview Lab → · Contrast checker → · Palette generator →

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