#4F7A17#4F7A17

#4F7A17 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.8% C 0.133 H 131.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#4F7A17
RGBrgb(79, 122, 23)
HSLhsl(86, 68%, 28%)
HSVhsv(86, 81%, 48%)
CMYKcmyk(35.2%, 0%, 81.1%, 52.2%)
CIE-LABlab(46.50, -30.73, 45.50)
CIE-LCHlch(46.50, 54.91, 124.03°)
OKLaboklab(52.85% -0.0873 0.1006)
OKLCHoklch(52.85% 0.133 131)
XYZxyz(10.3386, 15.6428, 3.2851)
Luminance0.1564 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7A17 #42177A
analogous
#7A7317 #4F7A17 #1D7A17
triadic
#4F7A17 #174F7A #7A174F
tetradic
#4F7A17 #177A73 #42177A #7A171D
square
#4F7A17 #177A73 #42177A #7A171D
split-complementary
#4F7A17 #171D7A #73177A
monochromatic
#111A05 #2E470D #4F7A17 #70AD21 #91D933

Accessibility & contrast

On white

5.09
#4F7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#4F7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7A17
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7A17#FFFFFF#000000##FFFFFF
##4F7A171.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#7A6D22
Tritanopia (blue-blind)
#517568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4f7a17;
/* rgb */ color: rgb(79, 122, 23);
/* oklch */ color: oklch(52.8% 0.133 131.0);
Tailwind
colors: {
  custom: {
    50: '#85a05d',
    500: '#4f7a17',
    950: '#000000',
  },
}
SCSS
$custom: #4f7a17;
$custom-light: #85a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7a17",
  "rgb": {
    "r": 79,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 86.061,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52849,
    "c": 0.1332,
    "h": 131
  },
  "luminance": 0.15643
}

Semantic roles & 50–950 ramp

primary
#4F7A17
secondary
#6F3EAF
accent
#3DEB88
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4F7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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