#4F791B#4F791B

#4F791B is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.6% C 0.130 H 131.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#4F791B
RGBrgb(79, 121, 27)
HSLhsl(87, 64%, 29%)
HSVhsv(87, 78%, 47%)
CMYKcmyk(34.7%, 0%, 77.7%, 52.5%)
CIE-LABlab(46.20, -30.03, 43.82)
CIE-LCHlch(46.20, 53.12, 124.42°)
OKLaboklab(52.61% -0.0851 0.0977)
OKLCHoklch(52.61% 0.13 131.1)
XYZxyz(10.2596, 15.4158, 3.4717)
Luminance0.1542 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F791B #451B79
analogous
#79741B #4F791B #20791B
triadic
#4F791B #1B4F79 #791B4F
tetradic
#4F791B #1B7974 #451B79 #791B20
square
#4F791B #1B7974 #451B79 #791B20
split-complementary
#4F791B #1B2079 #741B79
monochromatic
#101906 #2E4710 #4F791B #70AB26 #8FD33B

Accessibility & contrast

On white

5.14
#4F791B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#4F791B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F791B
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F791B#FFFFFF#000000##FFFFFF
##4F791B1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F07
Deuteranopia (green-blind)
#796C24
Tritanopia (blue-blind)
#517467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f791b;
/* rgb */ color: rgb(79, 121, 27);
/* oklch */ color: oklch(52.6% 0.130 131.1);
Tailwind
colors: {
  custom: {
    50: '#84a05f',
    500: '#4f791b',
    950: '#000000',
  },
}
SCSS
$custom: #4f791b;
$custom-light: #84a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f791b",
  "rgb": {
    "r": 79,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 86.809,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52608,
    "c": 0.1296,
    "h": 131.1
  },
  "luminance": 0.15416
}

Semantic roles & 50–950 ramp

primary
#4F791B
secondary
#7243AD
accent
#41E78B
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F791B

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

Preview Lab → · Contrast checker → · Palette generator →

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