#4F7822#4F7822

#4F7822 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.4% C 0.124 H 131.6°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#4F7822
RGBrgb(79, 120, 34)
HSLhsl(89, 56%, 30%)
HSVhsv(89, 72%, 47%)
CMYKcmyk(34.2%, 0%, 71.7%, 52.9%)
CIE-LABlab(45.92, -29.07, 40.78)
CIE-LCHlch(45.92, 50.08, 125.48°)
OKLaboklab(52.4% -0.0819 0.0925)
OKLCHoklch(52.4% 0.124 131.6)
XYZxyz(10.2295, 15.2103, 3.9100)
Luminance0.1521 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7822 #4B2278
analogous
#787622 #4F7822 #247822
triadic
#4F7822 #224F78 #78224F
tetradic
#4F7822 #227876 #4B2278 #782224
square
#4F7822 #227876 #4B2278 #782224
split-complementary
#4F7822 #222478 #762278
monochromatic
#101907 #304814 #4F7822 #6EA830 #8DCB49

Accessibility & contrast

On white

5.20
#4F7822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#4F7822 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7822
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7822#FFFFFF#000000##FFFFFF
##4F78221.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F15
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#507367
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f7822;
/* rgb */ color: rgb(79, 120, 34);
/* oklch */ color: oklch(52.4% 0.124 131.6);
Tailwind
colors: {
  custom: {
    50: '#849f62',
    500: '#4f7822',
    950: '#000000',
  },
}
SCSS
$custom: #4f7822;
$custom-light: #849f62;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7822",
  "rgb": {
    "r": 79,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 88.605,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52398,
    "c": 0.12354,
    "h": 131.6
  },
  "luminance": 0.15211
}

Semantic roles & 50–950 ramp

primary
#4F7822
secondary
#794BAB
accent
#49DF90
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E05
muted
#7C7E7A

Preview Lab

Preview with #4F7822

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

Preview Lab → · Contrast checker → · Palette generator →

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