#4F7217#4F7217

#4F7217 is a mid, vivid yellow-green. Relative luminance 0.138; OKLCH L 50.7% C 0.123 H 128.9°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#4F7217
RGBrgb(79, 114, 23)
HSLhsl(83, 66%, 27%)
HSVhsv(83, 80%, 45%)
CMYKcmyk(30.7%, 0%, 79.8%, 55.3%)
CIE-LABlab(43.88, -26.93, 43.04)
CIE-LCHlch(43.88, 50.77, 122.03°)
OKLaboklab(50.72% -0.077 0.0954)
OKLCHoklch(50.72% 0.123 128.9)
XYZxyz(9.3964, 13.7585, 2.9710)
Luminance0.1376 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7217 #3A1772
analogous
#726817 #4F7217 #227217
triadic
#4F7217 #174F72 #72174F
tetradic
#4F7217 #177268 #3A1772 #721722
square
#4F7217 #177268 #3A1772 #721722
split-complementary
#4F7217 #172272 #681772
monochromatic
#121905 #2C3F0D #4F7217 #72A521 #95D52E

Accessibility & contrast

On white

5.60
#4F7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#4F7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7217
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7217#FFFFFF#000000##FFFFFF
##4F72171.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786902
Deuteranopia (green-blind)
#736720
Tritanopia (blue-blind)
#526D61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4f7217;
/* rgb */ color: rgb(79, 114, 23);
/* oklch */ color: oklch(50.7% 0.123 128.9);
Tailwind
colors: {
  custom: {
    50: '#849a5c',
    500: '#4f7217',
    950: '#000000',
  },
}
SCSS
$custom: #4f7217;
$custom-light: #849a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7217",
  "rgb": {
    "r": 79,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 83.077,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.50716,
    "c": 0.12263,
    "h": 128.9
  },
  "luminance": 0.13759
}

Semantic roles & 50–950 ramp

primary
#4F7217
secondary
#663DA8
accent
#3EE980
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7217

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

Preview Lab → · Contrast checker → · Palette generator →

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