#4F8D22#4F8D22

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

Color values

HEX#4F8D22
RGBrgb(79, 141, 34)
HSLhsl(95, 61%, 34%)
HSVhsv(95, 76%, 55%)
CMYKcmyk(44%, 0%, 75.9%, 44.7%)
CIE-LABlab(52.76, -38.51, 47.67)
CIE-LCHlch(52.76, 61.29, 128.93°)
OKLaboklab(57.99% -0.1076 0.1069)
OKLCHoklch(57.99% 0.152 135.2)
XYZxyz(13.0378, 20.8268, 4.8460)
Luminance0.2083 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8D22 #60228D
analogous
#858D22 #4F8D22 #228D2A
triadic
#4F8D22 #224F8D #8D224F
tetradic
#4F8D22 #22858D #60228D #8D2A22
square
#4F8D22 #22858D #60228D #8D2A22
split-complementary
#4F8D22 #2A228D #8D2285
monochromatic
#182A0A #335C16 #4F8D22 #6BBE2E #8AD654

Accessibility & contrast

On white

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

On black

5.17
#4F8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8D22
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8D22#FFFFFF#000000##000000
##4F8D221.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810C
Deuteranopia (green-blind)
#8A7C2D
Tritanopia (blue-blind)
#4D8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4f8d22;
/* rgb */ color: rgb(79, 141, 34);
/* oklch */ color: oklch(58.0% 0.152 135.2);
Tailwind
colors: {
  custom: {
    50: '#86af65',
    500: '#4f8d22',
    950: '#000000',
  },
}
SCSS
$custom: #4f8d22;
$custom-light: #86af65;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8d22",
  "rgb": {
    "r": 79,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 94.766,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57988,
    "c": 0.15164,
    "h": 135.2
  },
  "luminance": 0.20828
}

Semantic roles & 50–950 ramp

primary
#4F8D22
secondary
#8E51B9
accent
#44E4A1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4F8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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