#4F8A1F#4F8A1F

#4F8A1F is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.2% C 0.150 H 134.5°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#4F8A1F
RGBrgb(79, 138, 31)
HSLhsl(93, 63%, 33%)
HSVhsv(93, 78%, 54%)
CMYKcmyk(42.8%, 0%, 77.5%, 45.9%)
CIE-LABlab(51.77, -37.42, 47.78)
CIE-LCHlch(51.77, 60.69, 128.07°)
OKLaboklab(57.17% -0.1048 0.1066)
OKLCHoklch(57.17% 0.15 134.5)
XYZxyz(12.5600, 19.9375, 4.4826)
Luminance0.1994 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8A1F #5A1F8A
analogous
#848A1F #4F8A1F #1F8A24
triadic
#4F8A1F #1F4F8A #8A1F4F
tetradic
#4F8A1F #1F848A #5A1F8A #8A241F
square
#4F8A1F #1F848A #5A1F8A #8A241F
split-complementary
#4F8A1F #241F8A #8A1F84
monochromatic
#162609 #325814 #4F8A1F #6CBC2A #8BD74C

Accessibility & contrast

On white

4.21
#4F8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#4F8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8A1F
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8A1F#FFFFFF#000000##000000
##4F8A1F1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#887A2A
Tritanopia (blue-blind)
#4E8476
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4f8a1f;
/* rgb */ color: rgb(79, 138, 31);
/* oklch */ color: oklch(57.2% 0.150 134.5);
Tailwind
colors: {
  custom: {
    50: '#86ac63',
    500: '#4f8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #4f8a1f;
$custom-light: #86ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8a1f",
  "rgb": {
    "r": 79,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 93.084,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57168,
    "c": 0.14954,
    "h": 134.5
  },
  "luminance": 0.19938
}

Semantic roles & 50–950 ramp

primary
#4F8A1F
secondary
#884BBA
accent
#41E69C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4F8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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