#4C8D28#4C8D28

#4C8D28 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 57.9% C 0.149 H 136.6°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#4C8D28
RGBrgb(76, 141, 40)
HSLhsl(99, 56%, 35%)
HSVhsv(99, 72%, 55%)
CMYKcmyk(46.1%, 0%, 71.6%, 44.7%)
CIE-LABlab(52.66, -39.08, 45.22)
CIE-LCHlch(52.66, 59.77, 130.84°)
OKLaboklab(57.88% -0.1085 0.1027)
OKLCHoklch(57.88% 0.149 136.6)
XYZxyz(12.8880, 20.7387, 5.3309)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8D28 #69288D
analogous
#7E8D28 #4C8D28 #288D36
triadic
#4C8D28 #284C8D #8D284C
tetradic
#4C8D28 #287E8D #69288D #8D3628
square
#4C8D28 #287E8D #69288D #8D3628
split-complementary
#4C8D28 #36288D #8D287E
monochromatic
#192E0D #325D1A #4C8D28 #66BD36 #87D15E

Accessibility & contrast

On white

4.08
#4C8D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#4C8D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8D28
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8D28#FFFFFF#000000##000000
##4C8D281.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928118
Deuteranopia (green-blind)
#897C31
Tritanopia (blue-blind)
#498879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4c8d28;
/* rgb */ color: rgb(76, 141, 40);
/* oklch */ color: oklch(57.9% 0.149 136.6);
Tailwind
colors: {
  custom: {
    50: '#84af68',
    500: '#4c8d28',
    950: '#000000',
  },
}
SCSS
$custom: #4c8d28;
$custom-light: #84af68;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8d28",
  "rgb": {
    "r": 76,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 98.614,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.57884,
    "c": 0.14936,
    "h": 136.6
  },
  "luminance": 0.20739
}

Semantic roles & 50–950 ramp

primary
#4C8D28
secondary
#965AB7
accent
#49DFA9
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8D28

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

Preview Lab → · Contrast checker → · Palette generator →

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