#4F7B20#4F7B20

#4F7B20 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.2% C 0.129 H 132.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#4F7B20
RGBrgb(79, 123, 32)
HSLhsl(89, 59%, 30%)
HSVhsv(89, 74%, 48%)
CMYKcmyk(35.8%, 0%, 74%, 51.8%)
CIE-LABlab(46.89, -30.63, 42.58)
CIE-LCHlch(46.89, 52.45, 125.73°)
OKLaboklab(53.18% -0.0864 0.0959)
OKLCHoklch(53.18% 0.129 132)
XYZxyz(10.5680, 15.9321, 3.8846)
Luminance0.1593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7B20 #4C207B
analogous
#7B7920 #4F7B20 #217B20
triadic
#4F7B20 #204F7B #7B204F
tetradic
#4F7B20 #207B79 #4C207B #7B2021
square
#4F7B20 #207B79 #4C207B #7B2021
split-complementary
#4F7B20 #20217B #79207B
monochromatic
#111A07 #304A13 #4F7B20 #6EAC2D #8DCF46

Accessibility & contrast

On white

5.02
#4F7B20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#4F7B20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7B20
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7B20#FFFFFF#000000##FFFFFF
##4F7B201.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807110
Deuteranopia (green-blind)
#7A6E28
Tritanopia (blue-blind)
#507669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4f7b20;
/* rgb */ color: rgb(79, 123, 32);
/* oklch */ color: oklch(53.2% 0.129 132.0);
Tailwind
colors: {
  custom: {
    50: '#84a162',
    500: '#4f7b20',
    950: '#000000',
  },
}
SCSS
$custom: #4f7b20;
$custom-light: #84a162;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7b20",
  "rgb": {
    "r": 79,
    "g": 123,
    "b": 32
  },
  "hsl": {
    "h": 89.011,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53179,
    "c": 0.12907,
    "h": 132
  },
  "luminance": 0.15932
}

Semantic roles & 50–950 ramp

primary
#4F7B20
secondary
#7A49AE
accent
#46E291
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F05
muted
#7C7E7A

Preview Lab

Preview with #4F7B20

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

Preview Lab → · Contrast checker → · Palette generator →

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