#4F8A22#4F8A22

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

Color values

HEX#4F8A22
RGBrgb(79, 138, 34)
HSLhsl(94, 60%, 34%)
HSVhsv(94, 75%, 54%)
CMYKcmyk(42.8%, 0%, 75.4%, 45.9%)
CIE-LABlab(51.79, -37.22, 46.71)
CIE-LCHlch(51.79, 59.73, 128.55°)
OKLaboklab(57.19% -0.1041 0.1049)
OKLCHoklch(57.19% 0.148 134.8)
XYZxyz(12.6014, 19.9540, 4.7006)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8A22 #5D228A
analogous
#838A22 #4F8A22 #228A29
triadic
#4F8A22 #224F8A #8A224F
tetradic
#4F8A22 #22838A #5D228A #8A2922
square
#4F8A22 #22838A #5D228A #8A2922
split-complementary
#4F8A22 #29228A #8A2283
monochromatic
#17280A #335916 #4F8A22 #6BBB2E #8AD452

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F8A22#FFFFFF#000000##000000
##4F8A221.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)
#8F7E0E
Deuteranopia (green-blind)
#877A2C
Tritanopia (blue-blind)
#4E8576
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4f8a22;
/* rgb */ color: rgb(79, 138, 34);
/* oklch */ color: oklch(57.2% 0.148 134.8);
Tailwind
colors: {
  custom: {
    50: '#86ac65',
    500: '#4f8a22',
    950: '#000000',
  },
}
SCSS
$custom: #4f8a22;
$custom-light: #86ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8a22",
  "rgb": {
    "r": 79,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 94.038,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57189,
    "c": 0.14775,
    "h": 134.8
  },
  "luminance": 0.19955
}

Semantic roles & 50–950 ramp

primary
#4F8A22
secondary
#8B50B8
accent
#44E49F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4F8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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