#4C842A#4C842A

#4C842A is a mid, vivid yellow-green. Relative luminance 0.182; OKLCH L 55.5% C 0.136 H 135.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#4C842A
RGBrgb(76, 132, 42)
HSLhsl(97, 52%, 34%)
HSVhsv(97, 68%, 52%)
CMYKcmyk(42.4%, 0%, 68.2%, 48.2%)
CIE-LABlab(49.74, -35.02, 41.30)
CIE-LCHlch(49.74, 54.15, 130.29°)
OKLaboklab(55.5% -0.0973 0.0947)
OKLCHoklch(55.5% 0.136 135.8)
XYZxyz(11.6494, 18.2056, 5.0902)
Luminance0.1821 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C842A #622A84
analogous
#79842A #4C842A #2A8435
triadic
#4C842A #2A4C84 #842A4C
tetradic
#4C842A #2A7984 #622A84 #84352A
square
#4C842A #2A7984 #622A84 #84352A
split-complementary
#4C842A #352A84 #842A79
monochromatic
#17270C #31561B #4C842A #67B239 #87CB5D

Accessibility & contrast

On white

4.52
#4C842A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#4C842A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C842A
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C842A#FFFFFF#000000##000000
##4C842A1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#89791E
Deuteranopia (green-blind)
#817532
Tritanopia (blue-blind)
#4A7F72
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4c842a;
/* rgb */ color: rgb(76, 132, 42);
/* oklch */ color: oklch(55.5% 0.136 135.8);
Tailwind
colors: {
  custom: {
    50: '#83a868',
    500: '#4c842a',
    950: '#000000',
  },
}
SCSS
$custom: #4c842a;
$custom-light: #83a868;
$custom-dark: #000000;
JSON
{
  "hex": "#4c842a",
  "rgb": {
    "r": 76,
    "g": 132,
    "b": 42
  },
  "hsl": {
    "h": 97.333,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.55498,
    "c": 0.13578,
    "h": 135.8
  },
  "luminance": 0.18206
}

Semantic roles & 50–950 ramp

primary
#4C842A
secondary
#9059B1
accent
#4DDBA5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4C842A

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

Preview Lab → · Contrast checker → · Palette generator →

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