#4F8A1C#4F8A1C

#4F8A1C is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.1% C 0.151 H 134.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#4F8A1C
RGBrgb(79, 138, 28)
HSLhsl(92, 66%, 33%)
HSVhsv(92, 80%, 54%)
CMYKcmyk(42.8%, 0%, 79.7%, 45.9%)
CIE-LABlab(51.75, -37.60, 48.79)
CIE-LCHlch(51.75, 61.60, 127.62°)
OKLaboklab(57.15% -0.1055 0.1083)
OKLCHoklch(57.15% 0.151 134.3)
XYZxyz(12.5223, 19.9224, 4.2840)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8A1C #571C8A
analogous
#868A1C #4F8A1C #1C8A20
triadic
#4F8A1C #1C4F8A #8A1C4F
tetradic
#4F8A1C #1C868A #571C8A #8A201C
square
#4F8A1C #1C868A #571C8A #8A201C
split-complementary
#4F8A1C #201C8A #8A1C86
monochromatic
#152407 #325712 #4F8A1C #6CBD26 #8BDA47

Accessibility & contrast

On white

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

On black

4.98
#4F8A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8A1C
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8A1C#FFFFFF#000000##000000
##4F8A1C1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#4E8476
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4f8a1c;
/* rgb */ color: rgb(79, 138, 28);
/* oklch */ color: oklch(57.1% 0.151 134.3);
Tailwind
colors: {
  custom: {
    50: '#86ac62',
    500: '#4f8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #4f8a1c;
$custom-light: #86ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8a1c",
  "rgb": {
    "r": 79,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 92.182,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57149,
    "c": 0.1512,
    "h": 134.3
  },
  "luminance": 0.19923
}

Semantic roles & 50–950 ramp

primary
#4F8A1C
secondary
#8546BB
accent
#3FE99A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #4F8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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