#4C7D22#4C7D22

#4C7D22 is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.6% C 0.132 H 133.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#4C7D22
RGBrgb(76, 125, 34)
HSLhsl(92, 57%, 31%)
HSVhsv(92, 73%, 49%)
CMYKcmyk(39.2%, 0%, 72.8%, 51%)
CIE-LABlab(47.39, -32.54, 42.23)
CIE-LCHlch(47.39, 53.32, 127.61°)
OKLaboklab(53.55% -0.0912 0.0956)
OKLCHoklch(53.55% 0.132 133.7)
XYZxyz(10.6027, 16.3187, 4.1042)
Luminance0.1632 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7D22 #53227D
analogous
#797D22 #4C7D22 #227D25
triadic
#4C7D22 #224C7D #7D224C
tetradic
#4C7D22 #22797D #53227D #7D2522
square
#4C7D22 #22797D #53227D #7D2522
split-complementary
#4C7D22 #25227D #7D2279
monochromatic
#111D08 #2F4D15 #4C7D22 #69AD2F #88CE4B

Accessibility & contrast

On white

4.93
#4C7D22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#4C7D22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7D22
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7D22#FFFFFF#000000##FFFFFF
##4C7D221.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827313
Deuteranopia (green-blind)
#7B6F2A
Tritanopia (blue-blind)
#4C786B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4c7d22;
/* rgb */ color: rgb(76, 125, 34);
/* oklch */ color: oklch(53.6% 0.132 133.7);
Tailwind
colors: {
  custom: {
    50: '#82a363',
    500: '#4c7d22',
    950: '#000000',
  },
}
SCSS
$custom: #4c7d22;
$custom-light: #82a363;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7d22",
  "rgb": {
    "r": 76,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 92.308,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53552,
    "c": 0.13208,
    "h": 133.7
  },
  "luminance": 0.16319
}

Semantic roles & 50–950 ramp

primary
#4C7D22
secondary
#814BB0
accent
#47E09A
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4C7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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