#4F7E28#4F7E28

#4F7E28 is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 54.0% C 0.127 H 133.6°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#4F7E28
RGBrgb(79, 126, 40)
HSLhsl(93, 52%, 33%)
HSVhsv(93, 68%, 49%)
CMYKcmyk(37.3%, 0%, 68.3%, 50.6%)
CIE-LABlab(47.93, -31.38, 40.29)
CIE-LCHlch(47.93, 51.07, 127.92°)
OKLaboklab(54.05% -0.0877 0.0923)
OKLCHoklch(54.05% 0.127 133.6)
XYZxyz(11.0681, 16.7367, 4.6544)
Luminance0.1674 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7E28 #57287E
analogous
#7A7E28 #4F7E28 #287E2C
triadic
#4F7E28 #284F7E #7E284F
tetradic
#4F7E28 #287A7E #57287E #7E2C28
square
#4F7E28 #287A7E #57287E #7E2C28
split-complementary
#4F7E28 #2C287E #7E287A
monochromatic
#15210B #325019 #4F7E28 #6CAC37 #8BCA57

Accessibility & contrast

On white

4.83
#4F7E28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#4F7E28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7E28
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7E28#FFFFFF#000000##FFFFFF
##4F7E281.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83741D
Deuteranopia (green-blind)
#7D702F
Tritanopia (blue-blind)
#4F796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4f7e28;
/* rgb */ color: rgb(79, 126, 40);
/* oklch */ color: oklch(54.0% 0.127 133.6);
Tailwind
colors: {
  custom: {
    50: '#84a367',
    500: '#4f7e28',
    950: '#000000',
  },
}
SCSS
$custom: #4f7e28;
$custom-light: #84a367;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7e28",
  "rgb": {
    "r": 79,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 92.791,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54049,
    "c": 0.12733,
    "h": 133.6
  },
  "luminance": 0.16737
}

Semantic roles & 50–950 ramp

primary
#4F7E28
secondary
#8553AF
accent
#4DDB9B
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4F7E28

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

Preview Lab → · Contrast checker → · Palette generator →

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