#4F8828#4F8828

#4F8828 is a mid, vivid yellow-green. Relative luminance 0.194; OKLCH L 56.7% C 0.141 H 135.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#4F8828
RGBrgb(79, 136, 40)
HSLhsl(96, 55%, 35%)
HSVhsv(96, 71%, 53%)
CMYKcmyk(41.9%, 0%, 70.6%, 46.7%)
CIE-LABlab(51.18, -35.90, 43.72)
CIE-LCHlch(51.18, 56.57, 129.39°)
OKLaboklab(56.71% -0.1 0.0995)
OKLCHoklch(56.71% 0.141 135.2)
XYZxyz(12.4113, 19.4231, 5.1021)
Luminance0.1942 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8828 #612888
analogous
#7F8828 #4F8828 #288831
triadic
#4F8828 #284F88 #88284F
tetradic
#4F8828 #287F88 #612888 #883128
square
#4F8828 #287F88 #612888 #883128
split-complementary
#4F8828 #312888 #88287F
monochromatic
#18290C #34591A #4F8828 #6AB736 #8ACF5B

Accessibility & contrast

On white

4.30
#4F8828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#4F8828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8828
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8828#FFFFFF#000000##000000
##4F88281.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f8828;
/* rgb */ color: rgb(79, 136, 40);
/* oklch */ color: oklch(56.7% 0.141 135.2);
Tailwind
colors: {
  custom: {
    50: '#85ab68',
    500: '#4f8828',
    950: '#000000',
  },
}
SCSS
$custom: #4f8828;
$custom-light: #85ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8828",
  "rgb": {
    "r": 79,
    "g": 136,
    "b": 40
  },
  "hsl": {
    "h": 95.625,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56707,
    "c": 0.14109,
    "h": 135.2
  },
  "luminance": 0.19424
}

Semantic roles & 50–950 ramp

primary
#4F8828
secondary
#8F58B4
accent
#4ADEA2
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4F8828

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

Preview Lab → · Contrast checker → · Palette generator →

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