#4F7E12#4F7E12

#4F7E12 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.9% C 0.141 H 131.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#4F7E12
RGBrgb(79, 126, 18)
HSLhsl(86, 75%, 28%)
HSVhsv(86, 86%, 49%)
CMYKcmyk(37.3%, 0%, 85.7%, 50.6%)
CIE-LABlab(47.79, -32.81, 48.17)
CIE-LCHlch(47.79, 58.29, 124.26°)
OKLaboklab(53.89% -0.0933 0.1054)
OKLCHoklch(53.89% 0.141 131.5)
XYZxyz(10.7944, 16.6272, 3.2128)
Luminance0.1663 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7E12 #41127E
analogous
#7E7712 #4F7E12 #197E12
triadic
#4F7E12 #124F7E #7E124F
tetradic
#4F7E12 #127E77 #41127E #7E1219
square
#4F7E12 #127E77 #41127E #7E1219
split-complementary
#4F7E12 #12197E #77127E
monochromatic
#111B04 #2D480A #4F7E12 #71B41A #91E12A

Accessibility & contrast

On white

4.85
#4F7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#4F7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7E12
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7E12#FFFFFF#000000##FFFFFF
##4F7E121.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7E701F
Tritanopia (blue-blind)
#50786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4f7e12;
/* rgb */ color: rgb(79, 126, 18);
/* oklch */ color: oklch(53.9% 0.141 131.5);
Tailwind
colors: {
  custom: {
    50: '#85a35c',
    500: '#4f7e12',
    950: '#000000',
  },
}
SCSS
$custom: #4f7e12;
$custom-light: #85a35c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7e12",
  "rgb": {
    "r": 79,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 86.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5389,
    "c": 0.14074,
    "h": 131.5
  },
  "luminance": 0.16628
}

Semantic roles & 50–950 ramp

primary
#4F7E12
secondary
#6E38B4
accent
#36F288
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4F7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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