#4F7816#4F7816

#4F7816 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.3% C 0.131 H 130.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#4F7816
RGBrgb(79, 120, 22)
HSLhsl(85, 69%, 28%)
HSVhsv(85, 82%, 47%)
CMYKcmyk(34.2%, 0%, 81.7%, 52.9%)
CIE-LABlab(45.84, -29.85, 45.21)
CIE-LCHlch(45.84, 54.18, 123.43°)
OKLaboklab(52.31% -0.085 0.0998)
OKLCHoklch(52.31% 0.131 130.4)
XYZxyz(10.0857, 15.1528, 3.1523)
Luminance0.1515 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7816 #3F1678
analogous
#787016 #4F7816 #1E7816
triadic
#4F7816 #164F78 #78164F
tetradic
#4F7816 #167870 #3F1678 #78161E
square
#4F7816 #167870 #3F1678 #78161E
split-complementary
#4F7816 #161E78 #701678
monochromatic
#111A05 #2D440D #4F7816 #71AC1F #92D92F

Accessibility & contrast

On white

5.21
#4F7816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#4F7816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7816
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7816#FFFFFF#000000##FFFFFF
##4F78161.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#786C21
Tritanopia (blue-blind)
#517366
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f7816;
/* rgb */ color: rgb(79, 120, 22);
/* oklch */ color: oklch(52.3% 0.131 130.4);
Tailwind
colors: {
  custom: {
    50: '#849f5d',
    500: '#4f7816',
    950: '#000000',
  },
}
SCSS
$custom: #4f7816;
$custom-light: #849f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7816",
  "rgb": {
    "r": 79,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 85.102,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52309,
    "c": 0.13111,
    "h": 130.4
  },
  "luminance": 0.15153
}

Semantic roles & 50–950 ramp

primary
#4F7816
secondary
#6C3CAD
accent
#3CEC86
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7816

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

Preview Lab → · Contrast checker → · Palette generator →

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