#4F8A28#4F8A28

#4F8A28 is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.2% C 0.144 H 135.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#4F8A28
RGBrgb(79, 138, 40)
HSLhsl(96, 55%, 35%)
HSVhsv(96, 71%, 54%)
CMYKcmyk(42.8%, 0%, 71%, 45.9%)
CIE-LABlab(51.83, -36.77, 44.40)
CIE-LCHlch(51.83, 57.65, 129.63°)
OKLaboklab(57.24% -0.1024 0.1009)
OKLCHoklch(57.24% 0.144 135.4)
XYZxyz(12.6956, 19.9917, 5.1969)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8A28 #63288A
analogous
#808A28 #4F8A28 #288A32
triadic
#4F8A28 #284F8A #8A284F
tetradic
#4F8A28 #28808A #63288A #8A3228
square
#4F8A28 #28808A #63288A #8A3228
split-complementary
#4F8A28 #32288A #8A2880
monochromatic
#192B0C #345B1A #4F8A28 #6AB936 #8AD05D

Accessibility & contrast

On white

4.20
#4F8A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#4F8A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8A28
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8A28#FFFFFF#000000##000000
##4F8A281.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F19
Deuteranopia (green-blind)
#877A31
Tritanopia (blue-blind)
#4D8576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4f8a28;
/* rgb */ color: rgb(79, 138, 40);
/* oklch */ color: oklch(57.2% 0.144 135.4);
Tailwind
colors: {
  custom: {
    50: '#85ac68',
    500: '#4f8a28',
    950: '#000000',
  },
}
SCSS
$custom: #4f8a28;
$custom-light: #85ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8a28",
  "rgb": {
    "r": 79,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 96.122,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57238,
    "c": 0.14377,
    "h": 135.4
  },
  "luminance": 0.19992
}

Semantic roles & 50–950 ramp

primary
#4F8A28
secondary
#9059B5
accent
#49DEA3
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4F8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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