#4F7B1A#4F7B1A

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

Color values

HEX#4F7B1A
RGBrgb(79, 123, 26)
HSLhsl(87, 65%, 29%)
HSVhsv(87, 79%, 48%)
CMYKcmyk(35.8%, 0%, 78.9%, 51.8%)
CIE-LABlab(46.85, -31.02, 44.80)
CIE-LCHlch(46.85, 54.49, 124.70°)
OKLaboklab(53.14% -0.0879 0.0996)
OKLCHoklch(53.14% 0.133 131.4)
XYZxyz(10.4938, 15.9024, 3.4936)
Luminance0.1590 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7B1A #461A7B
analogous
#7B771A #4F7B1A #1F7B1A
triadic
#4F7B1A #1A4F7B #7B1A4F
tetradic
#4F7B1A #1A7B77 #461A7B #7B1A1F
square
#4F7B1A #1A7B77 #461A7B #7B1A1F
split-complementary
#4F7B1A #1A1F7B #771A7B
monochromatic
#101905 #2F480F #4F7B1A #6FAE25 #8FD53A

Accessibility & contrast

On white

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

On black

4.18
#4F7B1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4F7B1A#FFFFFF#000000##FFFFFF
##4F7B1A1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f7b1a;
/* rgb */ color: rgb(79, 123, 26);
/* oklch */ color: oklch(53.1% 0.133 131.4);
Tailwind
colors: {
  custom: {
    50: '#84a15f',
    500: '#4f7b1a',
    950: '#000000',
  },
}
SCSS
$custom: #4f7b1a;
$custom-light: #84a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7b1a",
  "rgb": {
    "r": 79,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 87.216,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53135,
    "c": 0.13285,
    "h": 131.4
  },
  "luminance": 0.15903
}

Semantic roles & 50–950 ramp

primary
#4F7B1A
secondary
#7342AF
accent
#40E88C
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4F7B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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