#4D8828#4D8828

#4D8828 is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.6% C 0.142 H 135.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#4D8828
RGBrgb(77, 136, 40)
HSLhsl(97, 55%, 35%)
HSVhsv(97, 71%, 53%)
CMYKcmyk(43.4%, 0%, 70.6%, 46.7%)
CIE-LABlab(51.08, -36.60, 43.59)
CIE-LCHlch(51.08, 56.92, 130.02°)
OKLaboklab(56.6% -0.1018 0.0992)
OKLCHoklch(56.6% 0.142 135.7)
XYZxyz(12.2474, 19.3386, 5.0945)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8828 #632888
analogous
#7D8828 #4D8828 #288833
triadic
#4D8828 #284D88 #88284D
tetradic
#4D8828 #287D88 #632888 #883328
square
#4D8828 #287D88 #632888 #883328
split-complementary
#4D8828 #332888 #88287D
monochromatic
#17290C #32591A #4D8828 #68B736 #88CF5B

Accessibility & contrast

On white

4.31
#4D8828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#4D8828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D8828
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D8828#FFFFFF#000000##000000
##4D88281.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D1A
Deuteranopia (green-blind)
#857831
Tritanopia (blue-blind)
#4B8375
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4d8828;
/* rgb */ color: rgb(77, 136, 40);
/* oklch */ color: oklch(56.6% 0.142 135.7);
Tailwind
colors: {
  custom: {
    50: '#84ab68',
    500: '#4d8828',
    950: '#000000',
  },
}
SCSS
$custom: #4d8828;
$custom-light: #84ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8828",
  "rgb": {
    "r": 77,
    "g": 136,
    "b": 40
  },
  "hsl": {
    "h": 96.875,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.566,
    "c": 0.14217,
    "h": 135.7
  },
  "luminance": 0.19339
}

Semantic roles & 50–950 ramp

primary
#4D8828
secondary
#9058B4
accent
#4ADEA5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4D8828

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

Preview Lab → · Contrast checker → · Palette generator →

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