#4F7312#4F7312

#4F7312 is a mid, vivid yellow-green. Relative luminance 0.140; OKLCH L 51.0% C 0.127 H 128.9°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#4F7312
RGBrgb(79, 115, 18)
HSLhsl(82, 73%, 26%)
HSVhsv(82, 84%, 45%)
CMYKcmyk(31.3%, 0%, 84.3%, 54.9%)
CIE-LABlab(44.19, -27.67, 44.95)
CIE-LCHlch(44.19, 52.78, 121.61°)
OKLaboklab(50.95% -0.0794 0.0986)
OKLCHoklch(50.95% 0.127 128.9)
XYZxyz(9.4644, 13.9671, 2.7694)
Luminance0.1397 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7312 #361273
analogous
#736612 #4F7312 #1E7312
triadic
#4F7312 #124F73 #73124F
tetradic
#4F7312 #127366 #361273 #73121E
square
#4F7312 #127366 #361273 #73121E
split-complementary
#4F7312 #121E73 #661273
monochromatic
#121A04 #2B3E0A #4F7312 #73A81A #98DD23

Accessibility & contrast

On white

5.54
#4F7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#4F7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7312
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7312#FFFFFF#000000##FFFFFF
##4F73121.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#74681D
Tritanopia (blue-blind)
#526D61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4f7312;
/* rgb */ color: rgb(79, 115, 18);
/* oklch */ color: oklch(51.0% 0.127 128.9);
Tailwind
colors: {
  custom: {
    50: '#849b5a',
    500: '#4f7312',
    950: '#000000',
  },
}
SCSS
$custom: #4f7312;
$custom-light: #849b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7312",
  "rgb": {
    "r": 79,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 82.268,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.50953,
    "c": 0.12659,
    "h": 128.9
  },
  "luminance": 0.13967
}

Semantic roles & 50–950 ramp

primary
#4F7312
secondary
#6237AA
accent
#38F07C
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7312

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

Preview Lab → · Contrast checker → · Palette generator →

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