#4C8F21#4C8F21

#4C8F21 is a mid, vivid yellow-green. Relative luminance 0.213; OKLCH L 58.4% C 0.156 H 136.1°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#4C8F21
RGBrgb(76, 143, 33)
HSLhsl(97, 63%, 35%)
HSVhsv(97, 77%, 56%)
CMYKcmyk(46.9%, 0%, 76.9%, 43.9%)
CIE-LABlab(53.27, -40.44, 48.48)
CIE-LCHlch(53.27, 63.13, 129.83°)
OKLaboklab(58.36% -0.1126 0.1085)
OKLCHoklch(58.36% 0.156 136.1)
XYZxyz(13.0771, 21.2904, 4.8589)
Luminance0.2129 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8F21 #64218F
analogous
#838F21 #4C8F21 #218F2D
triadic
#4C8F21 #214C8F #8F214C
tetradic
#4C8F21 #21838F #64218F #8F2D21
square
#4C8F21 #21838F #64218F #8F2D21
split-complementary
#4C8F21 #2D218F #8F2183
monochromatic
#172C0A #325D16 #4C8F21 #66C12C #87D753

Accessibility & contrast

On white

3.99
#4C8F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#4C8F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8F21
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8F21#FFFFFF#000000##000000
##4C8F211.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948308
Deuteranopia (green-blind)
#8B7D2C
Tritanopia (blue-blind)
#498A7A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4c8f21;
/* rgb */ color: rgb(76, 143, 33);
/* oklch */ color: oklch(58.4% 0.156 136.1);
Tailwind
colors: {
  custom: {
    50: '#84b065',
    500: '#4c8f21',
    950: '#000000',
  },
}
SCSS
$custom: #4c8f21;
$custom-light: #84b065;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8f21",
  "rgb": {
    "r": 76,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 96.545,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58364,
    "c": 0.15636,
    "h": 136.1
  },
  "luminance": 0.21291
}

Semantic roles & 50–950 ramp

primary
#4C8F21
secondary
#9151BB
accent
#42E6A6
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4C8F21

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

Preview Lab → · Contrast checker → · Palette generator →

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