#4F8D1F#4F8D1F

#4F8D1F is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.0% C 0.153 H 134.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#4F8D1F
RGBrgb(79, 141, 31)
HSLhsl(94, 64%, 34%)
HSVhsv(94, 78%, 55%)
CMYKcmyk(44%, 0%, 78%, 44.7%)
CIE-LABlab(52.74, -38.71, 48.72)
CIE-LCHlch(52.74, 62.23, 128.47°)
OKLaboklab(57.97% -0.1083 0.1086)
OKLCHoklch(57.97% 0.153 134.9)
XYZxyz(12.9964, 20.8102, 4.6280)
Luminance0.2081 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8D1F #5D1F8D
analogous
#868D1F #4F8D1F #1F8D26
triadic
#4F8D1F #1F4F8D #8D1F4F
tetradic
#4F8D1F #1F868D #5D1F8D #8D261F
square
#4F8D1F #1F868D #5D1F8D #8D261F
split-complementary
#4F8D1F #261F8D #8D1F86
monochromatic
#172909 #335B14 #4F8D1F #6BBF2A #8AD84E

Accessibility & contrast

On white

4.07
#4F8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#4F8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8D1F
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8D1F#FFFFFF#000000##000000
##4F8D1F1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#928104
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#4E8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4f8d1f;
/* rgb */ color: rgb(79, 141, 31);
/* oklch */ color: oklch(58.0% 0.153 134.9);
Tailwind
colors: {
  custom: {
    50: '#86af64',
    500: '#4f8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #4f8d1f;
$custom-light: #86af64;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8d1f",
  "rgb": {
    "r": 79,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 93.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57967,
    "c": 0.15338,
    "h": 134.9
  },
  "luminance": 0.20811
}

Semantic roles & 50–950 ramp

primary
#4F8D1F
secondary
#8B4DBB
accent
#41E79E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4F8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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