#4E7F1C#4E7F1C

#4E7F1C is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.2% C 0.138 H 132.8°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4E7F1C
RGBrgb(78, 127, 28)
HSLhsl(90, 64%, 30%)
HSVhsv(90, 78%, 50%)
CMYKcmyk(38.6%, 0%, 78%, 50.2%)
CIE-LABlab(48.11, -33.12, 45.29)
CIE-LCHlch(48.11, 56.11, 126.17°)
OKLaboklab(54.16% -0.0934 0.101)
OKLCHoklch(54.16% 0.138 132.8)
XYZxyz(10.9407, 16.8818, 3.7804)
Luminance0.1688 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7F1C #4D1C7F
analogous
#7F7E1C #4E7F1C #1C7F1C
triadic
#4E7F1C #1C4E7F #7F1C4E
tetradic
#4E7F1C #1C7F7E #4D1C7F #7F1C1C
square
#4E7F1C #1C7F7E #4D1C7F #7F1C1C
split-complementary
#4E7F1C #1C1C7F #7E1C7F
monochromatic
#101B06 #2F4D11 #4E7F1C #6DB127 #8BD540

Accessibility & contrast

On white

4.80
#4E7F1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#4E7F1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7F1C
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7F1C#FFFFFF#000000##FFFFFF
##4E7F1C1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847506
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#4F7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4e7f1c;
/* rgb */ color: rgb(78, 127, 28);
/* oklch */ color: oklch(54.2% 0.138 132.8);
Tailwind
colors: {
  custom: {
    50: '#84a460',
    500: '#4e7f1c',
    950: '#000000',
  },
}
SCSS
$custom: #4e7f1c;
$custom-light: #84a460;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7f1c",
  "rgb": {
    "r": 78,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 89.697,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54157,
    "c": 0.13752,
    "h": 132.8
  },
  "luminance": 0.16882
}

Semantic roles & 50–950 ramp

primary
#4E7F1C
secondary
#7B44B3
accent
#41E793
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4E7F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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