#4F7817#4F7817

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

Color values

HEX#4F7817
RGBrgb(79, 120, 23)
HSLhsl(85, 68%, 28%)
HSVhsv(85, 81%, 47%)
CMYKcmyk(34.2%, 0%, 80.8%, 52.9%)
CIE-LABlab(45.85, -29.79, 44.89)
CIE-LCHlch(45.85, 53.88, 123.57°)
OKLaboklab(52.32% -0.0848 0.0993)
OKLCHoklch(52.32% 0.131 130.5)
XYZxyz(10.0955, 15.1567, 3.2041)
Luminance0.1516 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7817 #401778
analogous
#787017 #4F7817 #1E7817
triadic
#4F7817 #174F78 #78174F
tetradic
#4F7817 #177870 #401778 #78171E
square
#4F7817 #177870 #401778 #78171E
split-complementary
#4F7817 #171E78 #701778
monochromatic
#111A05 #2D450D #4F7817 #71AB21 #92D832

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F7817#FFFFFF#000000##FFFFFF
##4F78171.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)
#7E6F00
Deuteranopia (green-blind)
#786C21
Tritanopia (blue-blind)
#517366
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f7817;
/* rgb */ color: rgb(79, 120, 23);
/* oklch */ color: oklch(52.3% 0.131 130.5);
Tailwind
colors: {
  custom: {
    50: '#849f5d',
    500: '#4f7817',
    950: '#000000',
  },
}
SCSS
$custom: #4f7817;
$custom-light: #849f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7817",
  "rgb": {
    "r": 79,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 85.361,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52315,
    "c": 0.13058,
    "h": 130.5
  },
  "luminance": 0.15157
}

Semantic roles & 50–950 ramp

primary
#4F7817
secondary
#6D3EAD
accent
#3DEB86
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F7817

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

Preview Lab → · Contrast checker → · Palette generator →

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