#4D791B#4D791B

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

Color values

HEX#4D791B
RGBrgb(77, 121, 27)
HSLhsl(88, 64%, 29%)
HSVhsv(88, 78%, 47%)
CMYKcmyk(36.4%, 0%, 77.7%, 52.5%)
CIE-LABlab(46.08, -30.81, 43.67)
CIE-LCHlch(46.08, 53.45, 125.21°)
OKLaboklab(52.49% -0.0871 0.0974)
OKLCHoklch(52.49% 0.131 131.8)
XYZxyz(10.0957, 15.3313, 3.4640)
Luminance0.1533 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D791B #471B79
analogous
#79761B #4D791B #1E791B
triadic
#4D791B #1B4D79 #791B4D
tetradic
#4D791B #1B7976 #471B79 #791B1E
square
#4D791B #1B7976 #471B79 #791B1E
split-complementary
#4D791B #1B1E79 #761B79
monochromatic
#101906 #2D4710 #4D791B #6DAB26 #8CD33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D791B#FFFFFF#000000##FFFFFF
##4D791B1.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)
#7E6F07
Deuteranopia (green-blind)
#786C24
Tritanopia (blue-blind)
#4E7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4d791b;
/* rgb */ color: rgb(77, 121, 27);
/* oklch */ color: oklch(52.5% 0.131 131.8);
Tailwind
colors: {
  custom: {
    50: '#83a05f',
    500: '#4d791b',
    950: '#000000',
  },
}
SCSS
$custom: #4d791b;
$custom-light: #83a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d791b",
  "rgb": {
    "r": 77,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 88.085,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52485,
    "c": 0.13071,
    "h": 131.8
  },
  "luminance": 0.15332
}

Semantic roles & 50–950 ramp

primary
#4D791B
secondary
#7443AD
accent
#41E78F
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4D791B

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

Preview Lab → · Contrast checker → · Palette generator →

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