#4D791C#4D791C

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

Color values

HEX#4D791C
RGBrgb(77, 121, 28)
HSLhsl(88, 62%, 29%)
HSVhsv(88, 77%, 47%)
CMYKcmyk(36.4%, 0%, 76.9%, 52.5%)
CIE-LABlab(46.09, -30.75, 43.30)
CIE-LCHlch(46.09, 53.11, 125.38°)
OKLaboklab(52.49% -0.0869 0.0968)
OKLCHoklch(52.49% 0.13 131.9)
XYZxyz(10.1074, 15.3360, 3.5260)
Luminance0.1534 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D791C #481C79
analogous
#79771C #4D791C #1F791C
triadic
#4D791C #1C4D79 #791C4D
tetradic
#4D791C #1C7977 #481C79 #791C1F
square
#4D791C #1C7977 #481C79 #791C1F
split-complementary
#4D791C #1C1F79 #771C79
monochromatic
#101906 #2D4710 #4D791C #6DAB28 #8CD23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D791C#FFFFFF#000000##FFFFFF
##4D791C1.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)
#7E6F09
Deuteranopia (green-blind)
#786C25
Tritanopia (blue-blind)
#4E7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4d791c;
/* rgb */ color: rgb(77, 121, 28);
/* oklch */ color: oklch(52.5% 0.130 131.9);
Tailwind
colors: {
  custom: {
    50: '#83a05f',
    500: '#4d791c',
    950: '#000000',
  },
}
SCSS
$custom: #4d791c;
$custom-light: #83a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d791c",
  "rgb": {
    "r": 77,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 88.387,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52492,
    "c": 0.1301,
    "h": 131.9
  },
  "luminance": 0.15336
}

Semantic roles & 50–950 ramp

primary
#4D791C
secondary
#7644AD
accent
#42E590
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4D791C

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

Preview Lab → · Contrast checker → · Palette generator →

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