#4C8A21#4C8A21

#4C8A21 is a mid, vivid yellow-green. Relative luminance 0.198; OKLCH L 57.0% C 0.150 H 135.5°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#4C8A21
RGBrgb(76, 138, 33)
HSLhsl(95, 61%, 34%)
HSVhsv(95, 76%, 54%)
CMYKcmyk(44.9%, 0%, 76.1%, 45.9%)
CIE-LABlab(51.64, -38.33, 46.88)
CIE-LCHlch(51.64, 60.56, 129.27°)
OKLaboklab(57.03% -0.1069 0.1051)
OKLCHoklch(57.03% 0.15 135.5)
XYZxyz(12.3432, 19.8225, 4.6143)
Luminance0.1982 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8A21 #5F218A
analogous
#808A21 #4C8A21 #218A2A
triadic
#4C8A21 #214C8A #8A214C
tetradic
#4C8A21 #21808A #5F218A #8A2A21
square
#4C8A21 #21808A #5F218A #8A2A21
split-complementary
#4C8A21 #2A218A #8A2180
monochromatic
#162709 #315915 #4C8A21 #67BB2D #87D550

Accessibility & contrast

On white

4.23
#4C8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#4C8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8A21
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8A21#FFFFFF#000000##000000
##4C8A211.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0B
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#4A8576
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4c8a21;
/* rgb */ color: rgb(76, 138, 33);
/* oklch */ color: oklch(57.0% 0.150 135.5);
Tailwind
colors: {
  custom: {
    50: '#84ad64',
    500: '#4c8a21',
    950: '#000000',
  },
}
SCSS
$custom: #4c8a21;
$custom-light: #84ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8a21",
  "rgb": {
    "r": 76,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 95.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57026,
    "c": 0.14997,
    "h": 135.5
  },
  "luminance": 0.19823
}

Semantic roles & 50–950 ramp

primary
#4C8A21
secondary
#8D4EB9
accent
#43E5A2
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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