#4F791F#4F791F

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

Color values

HEX#4F791F
RGBrgb(79, 121, 31)
HSLhsl(88, 59%, 30%)
HSVhsv(88, 74%, 47%)
CMYKcmyk(34.7%, 0%, 74.4%, 52.5%)
CIE-LABlab(46.23, -29.76, 42.32)
CIE-LCHlch(46.23, 51.73, 125.12°)
OKLaboklab(52.64% -0.0841 0.0952)
OKLCHoklch(52.64% 0.127 131.5)
XYZxyz(10.3090, 15.4356, 3.7323)
Luminance0.1544 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F791F #491F79
analogous
#79761F #4F791F #22791F
triadic
#4F791F #1F4F79 #791F4F
tetradic
#4F791F #1F7976 #491F79 #791F22
square
#4F791F #1F7976 #491F79 #791F22
split-complementary
#4F791F #1F2279 #761F79
monochromatic
#101806 #2F4813 #4F791F #6FAA2B #8ECF43

Accessibility & contrast

On white

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

On black

4.09
#4F791F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4F791F#FFFFFF#000000##FFFFFF
##4F791F1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E700F
Deuteranopia (green-blind)
#796C27
Tritanopia (blue-blind)
#507467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f791f;
/* rgb */ color: rgb(79, 121, 31);
/* oklch */ color: oklch(52.6% 0.127 131.5);
Tailwind
colors: {
  custom: {
    50: '#84a061',
    500: '#4f791f',
    950: '#000000',
  },
}
SCSS
$custom: #4f791f;
$custom-light: #84a061;
$custom-dark: #000000;
JSON
{
  "hex": "#4f791f",
  "rgb": {
    "r": 79,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 88,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52639,
    "c": 0.12703,
    "h": 131.5
  },
  "luminance": 0.15436
}

Semantic roles & 50–950 ramp

primary
#4F791F
secondary
#7747AC
accent
#45E28F
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F791F

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

Preview Lab → · Contrast checker → · Palette generator →

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