#4C8022#4C8022

#4C8022 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.4% C 0.136 H 134.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#4C8022
RGBrgb(76, 128, 34)
HSLhsl(93, 58%, 32%)
HSVhsv(93, 73%, 50%)
CMYKcmyk(40.6%, 0%, 73.4%, 49.8%)
CIE-LABlab(48.37, -33.89, 43.24)
CIE-LCHlch(48.37, 54.94, 128.09°)
OKLaboklab(54.36% -0.0949 0.0977)
OKLCHoklch(54.36% 0.136 134.2)
XYZxyz(10.9882, 17.0898, 4.2327)
Luminance0.1709 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8022 #562280
analogous
#7B8022 #4C8022 #228027
triadic
#4C8022 #224C80 #80224C
tetradic
#4C8022 #227B80 #562280 #802722
square
#4C8022 #227B80 #562280 #802722
split-complementary
#4C8022 #272280 #80227B
monochromatic
#131F08 #2F5015 #4C8022 #69B02F #87D04D

Accessibility & contrast

On white

4.75
#4C8022 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#4C8022 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C8022
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8022#FFFFFF#000000##FFFFFF
##4C80221.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857612
Deuteranopia (green-blind)
#7E712B
Tritanopia (blue-blind)
#4C7B6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4c8022;
/* rgb */ color: rgb(76, 128, 34);
/* oklch */ color: oklch(54.4% 0.136 134.2);
Tailwind
colors: {
  custom: {
    50: '#83a563',
    500: '#4c8022',
    950: '#000000',
  },
}
SCSS
$custom: #4c8022;
$custom-light: #83a563;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8022",
  "rgb": {
    "r": 76,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 93.191,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54356,
    "c": 0.13615,
    "h": 134.2
  },
  "luminance": 0.1709
}

Semantic roles & 50–950 ramp

primary
#4C8022
secondary
#844BB2
accent
#47E19C
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4C8022

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

Preview Lab → · Contrast checker → · Palette generator →

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