#4F7D21#4F7D21

#4F7D21 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.7% C 0.131 H 132.5°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#4F7D21
RGBrgb(79, 125, 33)
HSLhsl(90, 58%, 31%)
HSVhsv(90, 74%, 49%)
CMYKcmyk(36.8%, 0%, 73.6%, 51%)
CIE-LABlab(47.55, -31.48, 42.85)
CIE-LCHlch(47.55, 53.17, 126.31°)
OKLaboklab(53.72% -0.0886 0.0966)
OKLCHoklch(53.72% 0.131 132.5)
XYZxyz(10.8324, 16.4389, 4.0408)
Luminance0.1644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7D21 #4F217D
analogous
#7D7D21 #4F7D21 #217D21
triadic
#4F7D21 #214F7D #7D214F
tetradic
#4F7D21 #217D7D #4F217D #7D2121
square
#4F7D21 #217D7D #4F217D #7D2121
split-complementary
#4F7D21 #21217D #7D217D
monochromatic
#121C07 #304D14 #4F7D21 #6EAD2E #8CCF49

Accessibility & contrast

On white

4.90
#4F7D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#4F7D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7D21
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7D21#FFFFFF#000000##FFFFFF
##4F7D211.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827312
Deuteranopia (green-blind)
#7C7029
Tritanopia (blue-blind)
#50786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4f7d21;
/* rgb */ color: rgb(79, 125, 33);
/* oklch */ color: oklch(53.7% 0.131 132.5);
Tailwind
colors: {
  custom: {
    50: '#84a363',
    500: '#4f7d21',
    950: '#000000',
  },
}
SCSS
$custom: #4f7d21;
$custom-light: #84a363;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7d21",
  "rgb": {
    "r": 79,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 90,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5372,
    "c": 0.13111,
    "h": 132.5
  },
  "luminance": 0.16439
}

Semantic roles & 50–950 ramp

primary
#4F7D21
secondary
#7D4AB0
accent
#46E194
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4F7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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