#4D7A1F#4D7A1F

#4D7A1F is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.8% C 0.130 H 132.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#4D7A1F
RGBrgb(77, 122, 31)
HSLhsl(90, 59%, 30%)
HSVhsv(90, 75%, 48%)
CMYKcmyk(36.9%, 0%, 74.6%, 52.2%)
CIE-LABlab(46.44, -31.01, 42.49)
CIE-LCHlch(46.44, 52.60, 126.12°)
OKLaboklab(52.78% -0.0873 0.0956)
OKLCHoklch(52.78% 0.13 132.4)
XYZxyz(10.2673, 15.5954, 3.7653)
Luminance0.1560 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7A1F #4C1F7A
analogous
#7A791F #4D7A1F #207A1F
triadic
#4D7A1F #1F4D7A #7A1F4D
tetradic
#4D7A1F #1F7A79 #4C1F7A #7A1F20
square
#4D7A1F #1F7A79 #4C1F7A #7A1F20
split-complementary
#4D7A1F #1F207A #791F7A
monochromatic
#0F1806 #2E4913 #4D7A1F #6CAB2B #8ACF44

Accessibility & contrast

On white

5.10
#4D7A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#4D7A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7A1F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7A1F#FFFFFF#000000##FFFFFF
##4D7A1F1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#796D28
Tritanopia (blue-blind)
#4E7568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4d7a1f;
/* rgb */ color: rgb(77, 122, 31);
/* oklch */ color: oklch(52.8% 0.130 132.4);
Tailwind
colors: {
  custom: {
    50: '#83a161',
    500: '#4d7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #4d7a1f;
$custom-light: #83a161;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7a1f",
  "rgb": {
    "r": 77,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 89.67,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.52783,
    "c": 0.1295,
    "h": 132.4
  },
  "luminance": 0.15596
}

Semantic roles & 50–950 ramp

primary
#4D7A1F
secondary
#7A47AD
accent
#45E393
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4D7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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