#4F7918#4F7918

#4F7918 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.6% C 0.131 H 130.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#4F7918
RGBrgb(79, 121, 24)
HSLhsl(86, 67%, 28%)
HSVhsv(86, 80%, 47%)
CMYKcmyk(34.7%, 0%, 80.2%, 52.5%)
CIE-LABlab(46.18, -30.21, 44.86)
CIE-LCHlch(46.18, 54.09, 123.95°)
OKLaboklab(52.59% -0.0859 0.0994)
OKLCHoklch(52.59% 0.131 130.8)
XYZxyz(10.2266, 15.4026, 3.2982)
Luminance0.1540 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7918 #421879
analogous
#797218 #4F7918 #1E7918
triadic
#4F7918 #184F79 #79184F
tetradic
#4F7918 #187972 #421879 #79181E
square
#4F7918 #187972 #421879 #79181E
split-complementary
#4F7918 #181E79 #721879
monochromatic
#111A05 #2E460E #4F7918 #70AC22 #91D735

Accessibility & contrast

On white

5.15
#4F7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#4F7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7918
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7918#FFFFFF#000000##FFFFFF
##4F79181.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#796C22
Tritanopia (blue-blind)
#517467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f7918;
/* rgb */ color: rgb(79, 121, 24);
/* oklch */ color: oklch(52.6% 0.131 130.8);
Tailwind
colors: {
  custom: {
    50: '#84a05e',
    500: '#4f7918',
    950: '#000000',
  },
}
SCSS
$custom: #4f7918;
$custom-light: #84a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7918",
  "rgb": {
    "r": 79,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 85.979,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52588,
    "c": 0.13135,
    "h": 130.8
  },
  "luminance": 0.15403
}

Semantic roles & 50–950 ramp

primary
#4F7918
secondary
#6F3FAE
accent
#3EEA88
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F7918

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

Preview Lab → · Contrast checker → · Palette generator →

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