#4F7218#4F7218

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

Color values

HEX#4F7218
RGBrgb(79, 114, 24)
HSLhsl(83, 65%, 27%)
HSVhsv(83, 79%, 45%)
CMYKcmyk(30.7%, 0%, 78.9%, 55.3%)
CIE-LABlab(43.89, -26.87, 42.69)
CIE-LCHlch(43.89, 50.44, 122.19°)
OKLaboklab(50.72% -0.0768 0.0948)
OKLCHoklch(50.72% 0.122 129)
XYZxyz(9.4066, 13.7626, 3.0248)
Luminance0.1376 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7218 #3B1872
analogous
#726818 #4F7218 #227218
triadic
#4F7218 #184F72 #72184F
tetradic
#4F7218 #187268 #3B1872 #721822
square
#4F7218 #187268 #3B1872 #721822
split-complementary
#4F7218 #182272 #681872
monochromatic
#121905 #2C3F0D #4F7218 #72A523 #94D431

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F7218#FFFFFF#000000##FFFFFF
##4F72181.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)
#786904
Deuteranopia (green-blind)
#736721
Tritanopia (blue-blind)
#526D61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4f7218;
/* rgb */ color: rgb(79, 114, 24);
/* oklch */ color: oklch(50.7% 0.122 129.0);
Tailwind
colors: {
  custom: {
    50: '#849a5d',
    500: '#4f7218',
    950: '#000000',
  },
}
SCSS
$custom: #4f7218;
$custom-light: #849a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7218",
  "rgb": {
    "r": 79,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 83.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.50723,
    "c": 0.12203,
    "h": 129
  },
  "luminance": 0.13763
}

Semantic roles & 50–950 ramp

primary
#4F7218
secondary
#673EA7
accent
#40E881
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7218

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

Preview Lab → · Contrast checker → · Palette generator →

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