#4C7828#4C7828

#4C7828 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.3% C 0.121 H 133.5°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#4C7828
RGBrgb(76, 120, 40)
HSLhsl(93, 50%, 31%)
HSVhsv(93, 67%, 47%)
CMYKcmyk(36.7%, 0%, 66.7%, 52.9%)
CIE-LABlab(45.80, -29.72, 37.95)
CIE-LCHlch(45.80, 48.20, 128.06°)
OKLaboklab(52.27% -0.083 0.0874)
OKLCHoklch(52.27% 0.121 133.5)
XYZxyz(10.0798, 15.1222, 4.3949)
Luminance0.1512 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7828 #542878
analogous
#747828 #4C7828 #28782C
triadic
#4C7828 #284C78 #78284C
tetradic
#4C7828 #287478 #542878 #782C28
square
#4C7828 #287478 #542878 #782C28
split-complementary
#4C7828 #2C2878 #782874
monochromatic
#121C09 #2F4A19 #4C7828 #69A637 #88C654

Accessibility & contrast

On white

5.22
#4C7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#4C7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7828
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7828#FFFFFF#000000##FFFFFF
##4C78281.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1E
Deuteranopia (green-blind)
#776B2E
Tritanopia (blue-blind)
#4C7367
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4c7828;
/* rgb */ color: rgb(76, 120, 40);
/* oklch */ color: oklch(52.3% 0.121 133.5);
Tailwind
colors: {
  custom: {
    50: '#819f66',
    500: '#4c7828',
    950: '#000000',
  },
}
SCSS
$custom: #4c7828;
$custom-light: #819f66;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7828",
  "rgb": {
    "r": 76,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 93,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52271,
    "c": 0.12052,
    "h": 133.5
  },
  "luminance": 0.15123
}

Semantic roles & 50–950 ramp

primary
#4C7828
secondary
#8252AA
accent
#4EDA9B
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #4C7828

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

Preview Lab → · Contrast checker → · Palette generator →

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