#4F8F1F#4F8F1F

#4F8F1F is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.5% C 0.156 H 135.2°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#4F8F1F
RGBrgb(79, 143, 31)
HSLhsl(94, 64%, 34%)
HSVhsv(94, 78%, 56%)
CMYKcmyk(44.8%, 0%, 78.3%, 43.9%)
CIE-LABlab(53.39, -39.55, 49.35)
CIE-LCHlch(53.39, 63.24, 128.71°)
OKLaboklab(58.5% -0.1106 0.1099)
OKLCHoklch(58.5% 0.156 135.2)
XYZxyz(13.2939, 21.4053, 4.7272)
Luminance0.2141 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8F1F #5F1F8F
analogous
#878F1F #4F8F1F #1F8F27
triadic
#4F8F1F #1F4F8F #8F1F4F
tetradic
#4F8F1F #1F878F #5F1F8F #8F271F
square
#4F8F1F #1F878F #5F1F8F #8F271F
split-complementary
#4F8F1F #271F8F #8F1F87
monochromatic
#172A09 #335D14 #4F8F1F #6BC12A #8AD94F

Accessibility & contrast

On white

3.98
#4F8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#4F8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8F1F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8F1F#FFFFFF#000000##000000
##4F8F1F1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#948303
Deuteranopia (green-blind)
#8C7E2B
Tritanopia (blue-blind)
#4D897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #4f8f1f;
/* rgb */ color: rgb(79, 143, 31);
/* oklch */ color: oklch(58.5% 0.156 135.2);
Tailwind
colors: {
  custom: {
    50: '#86b064',
    500: '#4f8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #4f8f1f;
$custom-light: #86b064;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8f1f",
  "rgb": {
    "r": 79,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 94.286,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58499,
    "c": 0.15592,
    "h": 135.2
  },
  "luminance": 0.21406
}

Semantic roles & 50–950 ramp

primary
#4F8F1F
secondary
#8D4EBC
accent
#40E7A0
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4F8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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