#4F7E22#4F7E22

#4F7E22 is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 54.0% C 0.132 H 132.8°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#4F7E22
RGBrgb(79, 126, 34)
HSLhsl(91, 58%, 31%)
HSVhsv(91, 73%, 49%)
CMYKcmyk(37.3%, 0%, 73%, 50.6%)
CIE-LABlab(47.88, -31.87, 42.78)
CIE-LCHlch(47.88, 53.35, 126.68°)
OKLaboklab(53.99% -0.0896 0.0967)
OKLCHoklch(53.99% 0.132 132.8)
XYZxyz(10.9739, 16.6990, 4.1581)
Luminance0.1670 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7E22 #51227E
analogous
#7D7E22 #4F7E22 #227E23
triadic
#4F7E22 #224F7E #7E224F
tetradic
#4F7E22 #227D7E #51227E #7E2322
square
#4F7E22 #227D7E #51227E #7E2322
split-complementary
#4F7E22 #23227E #7E227D
monochromatic
#131E08 #314E15 #4F7E22 #6DAE2F #8CCF4C

Accessibility & contrast

On white

4.84
#4F7E22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#4F7E22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7E22
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7E22#FFFFFF#000000##FFFFFF
##4F7E221.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837413
Deuteranopia (green-blind)
#7D702A
Tritanopia (blue-blind)
#50796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4f7e22;
/* rgb */ color: rgb(79, 126, 34);
/* oklch */ color: oklch(54.0% 0.132 132.8);
Tailwind
colors: {
  custom: {
    50: '#84a363',
    500: '#4f7e22',
    950: '#000000',
  },
}
SCSS
$custom: #4f7e22;
$custom-light: #84a363;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7e22",
  "rgb": {
    "r": 79,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 90.652,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53994,
    "c": 0.13177,
    "h": 132.8
  },
  "luminance": 0.16699
}

Semantic roles & 50–950 ramp

primary
#4F7E22
secondary
#7F4BB1
accent
#47E196
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4F7E22

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

Preview Lab → · Contrast checker → · Palette generator →

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