#4E7A1F#4E7A1F

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

Color values

HEX#4E7A1F
RGBrgb(78, 122, 31)
HSLhsl(89, 59%, 30%)
HSVhsv(89, 75%, 48%)
CMYKcmyk(36.1%, 0%, 74.6%, 52.2%)
CIE-LABlab(46.49, -30.62, 42.57)
CIE-LCHlch(46.49, 52.44, 125.73°)
OKLaboklab(52.84% -0.0864 0.0958)
OKLCHoklch(52.84% 0.129 132)
XYZxyz(10.3486, 15.6373, 3.7691)
Luminance0.1564 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7A1F #4B1F7A
analogous
#7A781F #4E7A1F #217A1F
triadic
#4E7A1F #1F4E7A #7A1F4E
tetradic
#4E7A1F #1F7A78 #4B1F7A #7A1F21
square
#4E7A1F #1F7A78 #4B1F7A #7A1F21
split-complementary
#4E7A1F #1F217A #781F7A
monochromatic
#101806 #2F4913 #4E7A1F #6DAB2B #8CCF44

Accessibility & contrast

On white

5.09
#4E7A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#4E7A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7A1F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7A1F#FFFFFF#000000##FFFFFF
##4E7A1F1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e7a1f;
/* rgb */ color: rgb(78, 122, 31);
/* oklch */ color: oklch(52.8% 0.129 132.0);
Tailwind
colors: {
  custom: {
    50: '#83a161',
    500: '#4e7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #4e7a1f;
$custom-light: #83a161;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7a1f",
  "rgb": {
    "r": 78,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 89.011,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.52844,
    "c": 0.12895,
    "h": 132
  },
  "luminance": 0.15638
}

Semantic roles & 50–950 ramp

primary
#4E7A1F
secondary
#7947AD
accent
#45E391
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4E7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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