#4F7512#4F7512

#4F7512 is a mid, vivid yellow-green. Relative luminance 0.144; OKLCH L 51.5% C 0.129 H 129.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#4F7512
RGBrgb(79, 117, 18)
HSLhsl(83, 73%, 26%)
HSVhsv(83, 85%, 46%)
CMYKcmyk(32.5%, 0%, 84.6%, 54.1%)
CIE-LABlab(44.84, -28.63, 45.54)
CIE-LCHlch(44.84, 53.79, 122.15°)
OKLaboklab(51.49% -0.082 0.0998)
OKLCHoklch(51.49% 0.129 129.4)
XYZxyz(9.6949, 14.4282, 2.8463)
Luminance0.1443 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7512 #381275
analogous
#756A12 #4F7512 #1E7512
triadic
#4F7512 #124F75 #75124F
tetradic
#4F7512 #12756A #381275 #75121E
square
#4F7512 #12756A #381275 #75121E
split-complementary
#4F7512 #121E75 #6A1275
monochromatic
#121B04 #2B400A #4F7512 #73AA1A #96DD24

Accessibility & contrast

On white

5.40
#4F7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#4F7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7512
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7512#FFFFFF#000000##FFFFFF
##4F75121.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#76691D
Tritanopia (blue-blind)
#526F63
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4f7512;
/* rgb */ color: rgb(79, 117, 18);
/* oklch */ color: oklch(51.5% 0.129 129.4);
Tailwind
colors: {
  custom: {
    50: '#849d5a',
    500: '#4f7512',
    950: '#000000',
  },
}
SCSS
$custom: #4f7512;
$custom-light: #849d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7512",
  "rgb": {
    "r": 79,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 83.03,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51486,
    "c": 0.12919,
    "h": 129.4
  },
  "luminance": 0.14429
}

Semantic roles & 50–950 ramp

primary
#4F7512
secondary
#6437AC
accent
#38F07F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7512

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

Preview Lab → · Contrast checker → · Palette generator →

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