#4F7A1A#4F7A1A

#4F7A1A is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 52.9% C 0.132 H 131.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#4F7A1A
RGBrgb(79, 122, 26)
HSLhsl(87, 65%, 29%)
HSVhsv(87, 79%, 48%)
CMYKcmyk(35.2%, 0%, 78.7%, 52.2%)
CIE-LABlab(46.52, -30.56, 44.49)
CIE-LCHlch(46.52, 53.97, 124.48°)
OKLaboklab(52.87% -0.0866 0.099)
OKLCHoklch(52.87% 0.132 131.2)
XYZxyz(10.3703, 15.6555, 3.4525)
Luminance0.1566 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7A1A #451A7A
analogous
#7A751A #4F7A1A #1F7A1A
triadic
#4F7A1A #1A4F7A #7A1A4F
tetradic
#4F7A1A #1A7A75 #451A7A #7A1A1F
square
#4F7A1A #1A7A75 #451A7A #7A1A1F
split-complementary
#4F7A1A #1A1F7A #751A7A
monochromatic
#101905 #2E480F #4F7A1A #70AC25 #8FD539

Accessibility & contrast

On white

5.08
#4F7A1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#4F7A1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7A1A
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7A1A#FFFFFF#000000##FFFFFF
##4F7A1A1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807004
Deuteranopia (green-blind)
#7A6D24
Tritanopia (blue-blind)
#517568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4f7a1a;
/* rgb */ color: rgb(79, 122, 26);
/* oklch */ color: oklch(52.9% 0.132 131.2);
Tailwind
colors: {
  custom: {
    50: '#84a05f',
    500: '#4f7a1a',
    950: '#000000',
  },
}
SCSS
$custom: #4f7a1a;
$custom-light: #84a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7a1a",
  "rgb": {
    "r": 79,
    "g": 122,
    "b": 26
  },
  "hsl": {
    "h": 86.875,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52868,
    "c": 0.13153,
    "h": 131.2
  },
  "luminance": 0.15656
}

Semantic roles & 50–950 ramp

primary
#4F7A1A
secondary
#7241AE
accent
#40E88B
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4F7A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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