#4F8B20#4F8B20

#4F8B20 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.4% C 0.150 H 134.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#4F8B20
RGBrgb(79, 139, 32)
HSLhsl(94, 63%, 34%)
HSVhsv(94, 77%, 55%)
CMYKcmyk(43.2%, 0%, 77%, 45.5%)
CIE-LABlab(52.10, -37.79, 47.75)
CIE-LCHlch(52.10, 60.89, 128.36°)
OKLaboklab(57.44% -0.1057 0.1067)
OKLCHoklch(57.44% 0.15 134.7)
XYZxyz(12.7175, 20.2311, 4.6011)
Luminance0.2023 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8B20 #5C208B
analogous
#848B20 #4F8B20 #208B26
triadic
#4F8B20 #204F8B #8B204F
tetradic
#4F8B20 #20848B #5C208B #8B2620
square
#4F8B20 #20848B #5C208B #8B2620
split-complementary
#4F8B20 #26208B #8B2084
monochromatic
#162809 #335915 #4F8B20 #6BBD2B #8AD64F

Accessibility & contrast

On white

4.16
#4F8B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#4F8B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8B20
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8B20#FFFFFF#000000##000000
##4F8B201.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#4E8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4f8b20;
/* rgb */ color: rgb(79, 139, 32);
/* oklch */ color: oklch(57.4% 0.150 134.7);
Tailwind
colors: {
  custom: {
    50: '#86ad64',
    500: '#4f8b20',
    950: '#000000',
  },
}
SCSS
$custom: #4f8b20;
$custom-light: #86ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8b20",
  "rgb": {
    "r": 79,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 93.645,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57441,
    "c": 0.15025,
    "h": 134.7
  },
  "luminance": 0.20232
}

Semantic roles & 50–950 ramp

primary
#4F8B20
secondary
#8A4DBA
accent
#42E69E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4F8B20

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

Preview Lab → · Contrast checker → · Palette generator →

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