#4F7412#4F7412

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

Color values

HEX#4F7412
RGBrgb(79, 116, 18)
HSLhsl(83, 73%, 26%)
HSVhsv(83, 84%, 45%)
CMYKcmyk(31.9%, 0%, 84.5%, 54.5%)
CIE-LABlab(44.51, -28.15, 45.25)
CIE-LCHlch(44.51, 53.29, 121.89°)
OKLaboklab(51.22% -0.0807 0.0992)
OKLCHoklch(51.22% 0.128 129.1)
XYZxyz(9.5790, 14.1964, 2.8076)
Luminance0.1420 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7412 #371274
analogous
#746812 #4F7412 #1E7412
triadic
#4F7412 #124F74 #74124F
tetradic
#4F7412 #127468 #371274 #74121E
square
#4F7412 #127468 #371274 #74121E
split-complementary
#4F7412 #121E74 #681274
monochromatic
#121A04 #2B3F0A #4F7412 #73A91A #97DD23

Accessibility & contrast

On white

5.47
#4F7412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4F7412
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7412#FFFFFF#000000##FFFFFF
##4F74121.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#75681D
Tritanopia (blue-blind)
#526E62
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4f7412;
/* rgb */ color: rgb(79, 116, 18);
/* oklch */ color: oklch(51.2% 0.128 129.1);
Tailwind
colors: {
  custom: {
    50: '#849c5a',
    500: '#4f7412',
    950: '#000000',
  },
}
SCSS
$custom: #4f7412;
$custom-light: #849c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7412",
  "rgb": {
    "r": 79,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 82.653,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.5122,
    "c": 0.12789,
    "h": 129.1
  },
  "luminance": 0.14197
}

Semantic roles & 50–950 ramp

primary
#4F7412
secondary
#6337AB
accent
#38F07D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7412

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

Preview Lab → · Contrast checker → · Palette generator →

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