#4F7D22#4F7D22

#4F7D22 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.7% C 0.130 H 132.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#4F7D22
RGBrgb(79, 125, 34)
HSLhsl(90, 57%, 31%)
HSVhsv(90, 73%, 49%)
CMYKcmyk(36.8%, 0%, 72.8%, 51%)
CIE-LABlab(47.55, -31.41, 42.45)
CIE-LCHlch(47.55, 52.81, 126.50°)
OKLaboklab(53.73% -0.0883 0.096)
OKLCHoklch(53.73% 0.13 132.6)
XYZxyz(10.8466, 16.4445, 4.1157)
Luminance0.1645 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7D22 #50227D
analogous
#7C7D22 #4F7D22 #227D22
triadic
#4F7D22 #224F7D #7D224F
tetradic
#4F7D22 #227C7D #50227D #7D2222
square
#4F7D22 #227C7D #50227D #7D2222
split-complementary
#4F7D22 #22227D #7D227C
monochromatic
#121D08 #314D15 #4F7D22 #6DAD2F #8CCE4B

Accessibility & contrast

On white

4.90
#4F7D22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#4F7D22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7D22
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7D22#FFFFFF#000000##FFFFFF
##4F7D221.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827313
Deuteranopia (green-blind)
#7C702A
Tritanopia (blue-blind)
#50786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4f7d22;
/* rgb */ color: rgb(79, 125, 34);
/* oklch */ color: oklch(53.7% 0.130 132.6);
Tailwind
colors: {
  custom: {
    50: '#84a363',
    500: '#4f7d22',
    950: '#000000',
  },
}
SCSS
$custom: #4f7d22;
$custom-light: #84a363;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7d22",
  "rgb": {
    "r": 79,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 90.33,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53728,
    "c": 0.13042,
    "h": 132.6
  },
  "luminance": 0.16445
}

Semantic roles & 50–950 ramp

primary
#4F7D22
secondary
#7E4BB0
accent
#47E095
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4F7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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