#4F8A21#4F8A21

#4F8A21 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.2% C 0.148 H 134.7°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#4F8A21
RGBrgb(79, 138, 33)
HSLhsl(94, 61%, 34%)
HSVhsv(94, 76%, 54%)
CMYKcmyk(42.8%, 0%, 76.1%, 45.9%)
CIE-LABlab(51.78, -37.29, 47.07)
CIE-LCHlch(51.78, 60.05, 128.39°)
OKLaboklab(57.18% -0.1043 0.1055)
OKLCHoklch(57.18% 0.148 134.7)
XYZxyz(12.5872, 19.9483, 4.6257)
Luminance0.1995 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8A21 #5C218A
analogous
#838A21 #4F8A21 #218A27
triadic
#4F8A21 #214F8A #8A214F
tetradic
#4F8A21 #21838A #5C218A #8A2721
square
#4F8A21 #21838A #5C218A #8A2721
split-complementary
#4F8A21 #27218A #8A2183
monochromatic
#162709 #335915 #4F8A21 #6BBB2D #8AD550

Accessibility & contrast

On white

4.21
#4F8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#4F8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8A21
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8A21#FFFFFF#000000##000000
##4F8A211.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0B
Deuteranopia (green-blind)
#877A2C
Tritanopia (blue-blind)
#4E8576
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4f8a21;
/* rgb */ color: rgb(79, 138, 33);
/* oklch */ color: oklch(57.2% 0.148 134.7);
Tailwind
colors: {
  custom: {
    50: '#86ac64',
    500: '#4f8a21',
    950: '#000000',
  },
}
SCSS
$custom: #4f8a21;
$custom-light: #86ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8a21",
  "rgb": {
    "r": 79,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 93.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57182,
    "c": 0.14836,
    "h": 134.7
  },
  "luminance": 0.19949
}

Semantic roles & 50–950 ramp

primary
#4F8A21
secondary
#8A4EB9
accent
#43E59E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4F8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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