#4F7417#4F7417

#4F7417 is a mid, vivid yellow-green. Relative luminance 0.142; OKLCH L 51.2% C 0.125 H 129.5°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#4F7417
RGBrgb(79, 116, 23)
HSLhsl(84, 67%, 27%)
HSVhsv(84, 80%, 45%)
CMYKcmyk(31.9%, 0%, 80.2%, 54.5%)
CIE-LABlab(44.54, -27.89, 43.66)
CIE-LCHlch(44.54, 51.81, 122.58°)
OKLaboklab(51.25% -0.0797 0.0967)
OKLCHoklch(51.25% 0.125 129.5)
XYZxyz(9.6245, 14.2146, 3.0471)
Luminance0.1421 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7417 #3C1774
analogous
#746B17 #4F7417 #217417
triadic
#4F7417 #174F74 #74174F
tetradic
#4F7417 #17746B #3C1774 #741721
square
#4F7417 #17746B #3C1774 #741721
split-complementary
#4F7417 #172174 #6B1774
monochromatic
#111A05 #2C410D #4F7417 #72A721 #94D630

Accessibility & contrast

On white

5.46
#4F7417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#4F7417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7417
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7417#FFFFFF#000000##FFFFFF
##4F74171.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B01
Deuteranopia (green-blind)
#756821
Tritanopia (blue-blind)
#516F63
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4f7417;
/* rgb */ color: rgb(79, 116, 23);
/* oklch */ color: oklch(51.2% 0.125 129.5);
Tailwind
colors: {
  custom: {
    50: '#849c5c',
    500: '#4f7417',
    950: '#000000',
  },
}
SCSS
$custom: #4f7417;
$custom-light: #849c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7417",
  "rgb": {
    "r": 79,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 83.871,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.51249,
    "c": 0.12529,
    "h": 129.5
  },
  "luminance": 0.14215
}

Semantic roles & 50–950 ramp

primary
#4F7417
secondary
#683DA9
accent
#3EEA82
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7417

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

Preview Lab → · Contrast checker → · Palette generator →

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