#4D791F#4D791F

#4D791F is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.5% C 0.128 H 132.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#4D791F
RGBrgb(77, 121, 31)
HSLhsl(89, 59%, 30%)
HSVhsv(89, 74%, 47%)
CMYKcmyk(36.4%, 0%, 74.4%, 52.5%)
CIE-LABlab(46.11, -30.54, 42.16)
CIE-LCHlch(46.11, 52.06, 125.92°)
OKLaboklab(52.52% -0.0861 0.0949)
OKLCHoklch(52.52% 0.128 132.2)
XYZxyz(10.1451, 15.3510, 3.7246)
Luminance0.1535 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D791F #4B1F79
analogous
#79781F #4D791F #20791F
triadic
#4D791F #1F4D79 #791F4D
tetradic
#4D791F #1F7978 #4B1F79 #791F20
square
#4D791F #1F7978 #4B1F79 #791F20
split-complementary
#4D791F #1F2079 #781F79
monochromatic
#101806 #2E4813 #4D791F #6CAA2B #8BCF43

Accessibility & contrast

On white

5.16
#4D791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#4D791F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D791F
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D791F#FFFFFF#000000##FFFFFF
##4D791F1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#4E7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4d791f;
/* rgb */ color: rgb(77, 121, 31);
/* oklch */ color: oklch(52.5% 0.128 132.2);
Tailwind
colors: {
  custom: {
    50: '#83a061',
    500: '#4d791f',
    950: '#000000',
  },
}
SCSS
$custom: #4d791f;
$custom-light: #83a061;
$custom-dark: #000000;
JSON
{
  "hex": "#4d791f",
  "rgb": {
    "r": 77,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 89.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52516,
    "c": 0.12815,
    "h": 132.2
  },
  "luminance": 0.15351
}

Semantic roles & 50–950 ramp

primary
#4D791F
secondary
#7947AC
accent
#45E292
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4D791F

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

Preview Lab → · Contrast checker → · Palette generator →

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