#4C8D22#4C8D22

#4C8D22 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 57.8% C 0.153 H 135.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#4C8D22
RGBrgb(76, 141, 34)
HSLhsl(96, 61%, 34%)
HSVhsv(96, 76%, 55%)
CMYKcmyk(46.1%, 0%, 75.9%, 44.7%)
CIE-LABlab(52.62, -39.53, 47.49)
CIE-LCHlch(52.62, 61.79, 129.78°)
OKLaboklab(57.84% -0.1101 0.1066)
OKLCHoklch(57.84% 0.153 135.9)
XYZxyz(12.7938, 20.7010, 4.8346)
Luminance0.2070 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8D22 #63228D
analogous
#828D22 #4C8D22 #228D2E
triadic
#4C8D22 #224C8D #8D224C
tetradic
#4C8D22 #22828D #63228D #8D2E22
square
#4C8D22 #22828D #63228D #8D2E22
split-complementary
#4C8D22 #2E228D #8D2282
monochromatic
#172A0A #315C16 #4C8D22 #67BE2E #87D654

Accessibility & contrast

On white

4.09
#4C8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#4C8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8D22
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8D22#FFFFFF#000000##000000
##4C8D221.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810C
Deuteranopia (green-blind)
#897C2D
Tritanopia (blue-blind)
#498878
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4c8d22;
/* rgb */ color: rgb(76, 141, 34);
/* oklch */ color: oklch(57.8% 0.153 135.9);
Tailwind
colors: {
  custom: {
    50: '#84af65',
    500: '#4c8d22',
    950: '#000000',
  },
}
SCSS
$custom: #4c8d22;
$custom-light: #84af65;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8d22",
  "rgb": {
    "r": 76,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 96.449,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57836,
    "c": 0.15323,
    "h": 135.9
  },
  "luminance": 0.20702
}

Semantic roles & 50–950 ramp

primary
#4C8D22
secondary
#9151B9
accent
#44E4A5
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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