#4C8D21#4C8D21

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

Color values

HEX#4C8D21
RGBrgb(76, 141, 33)
HSLhsl(96, 62%, 34%)
HSVhsv(96, 77%, 55%)
CMYKcmyk(46.1%, 0%, 76.6%, 44.7%)
CIE-LABlab(52.61, -39.60, 47.85)
CIE-LCHlch(52.61, 62.11, 129.61°)
OKLaboklab(57.83% -0.1104 0.1071)
OKLCHoklch(57.83% 0.154 135.9)
XYZxyz(12.7796, 20.6953, 4.7597)
Luminance0.2070 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8D21 #62218D
analogous
#828D21 #4C8D21 #218D2C
triadic
#4C8D21 #214C8D #8D214C
tetradic
#4C8D21 #21828D #62218D #8D2C21
square
#4C8D21 #21828D #62218D #8D2C21
split-complementary
#4C8D21 #2C218D #8D2182
monochromatic
#172A0A #315B15 #4C8D21 #67BF2D #87D652

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C8D21#FFFFFF#000000##000000
##4C8D211.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)
#92810A
Deuteranopia (green-blind)
#8A7C2C
Tritanopia (blue-blind)
#4A8878
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4c8d21;
/* rgb */ color: rgb(76, 141, 33);
/* oklch */ color: oklch(57.8% 0.154 135.9);
Tailwind
colors: {
  custom: {
    50: '#84af65',
    500: '#4c8d21',
    950: '#000000',
  },
}
SCSS
$custom: #4c8d21;
$custom-light: #84af65;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8d21",
  "rgb": {
    "r": 76,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 96.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57829,
    "c": 0.15382,
    "h": 135.9
  },
  "luminance": 0.20696
}

Semantic roles & 50–950 ramp

primary
#4C8D21
secondary
#9050BA
accent
#43E5A4
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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