#4C8E21#4C8E21

#4C8E21 is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.1% C 0.155 H 136.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#4C8E21
RGBrgb(76, 142, 33)
HSLhsl(96, 62%, 34%)
HSVhsv(96, 77%, 56%)
CMYKcmyk(46.5%, 0%, 76.8%, 44.3%)
CIE-LABlab(52.94, -40.02, 48.17)
CIE-LCHlch(52.94, 62.62, 129.72°)
OKLaboklab(58.1% -0.1115 0.1078)
OKLCHoklch(58.1% 0.155 136)
XYZxyz(12.9277, 20.9915, 4.8091)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8E21 #63218E
analogous
#838E21 #4C8E21 #218E2C
triadic
#4C8E21 #214C8E #8E214C
tetradic
#4C8E21 #21838E #63218E #8E2C21
square
#4C8E21 #21838E #63218E #8E2C21
split-complementary
#4C8E21 #2C218E #8E2183
monochromatic
#172B0A #315C15 #4C8E21 #67C02D #87D752

Accessibility & contrast

On white

4.04
#4C8E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#4C8E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8E21
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8E21#FFFFFF#000000##000000
##4C8E211.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938209
Deuteranopia (green-blind)
#8A7C2C
Tritanopia (blue-blind)
#498979
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4c8e21;
/* rgb */ color: rgb(76, 142, 33);
/* oklch */ color: oklch(58.1% 0.155 136.0);
Tailwind
colors: {
  custom: {
    50: '#84af65',
    500: '#4c8e21',
    950: '#000000',
  },
}
SCSS
$custom: #4c8e21;
$custom-light: #84af65;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8e21",
  "rgb": {
    "r": 76,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 96.33,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58096,
    "c": 0.1551,
    "h": 136
  },
  "luminance": 0.20992
}

Semantic roles & 50–950 ramp

primary
#4C8E21
secondary
#9150BA
accent
#42E5A5
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8E21

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

Preview Lab → · Contrast checker → · Palette generator →

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