#4F7828#4F7828

#4F7828 is a mid, moderate yellow-green. Relative luminance 0.152; OKLCH L 52.5% C 0.119 H 132.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#4F7828
RGBrgb(79, 120, 40)
HSLhsl(91, 50%, 31%)
HSVhsv(91, 67%, 47%)
CMYKcmyk(34.2%, 0%, 66.7%, 52.9%)
CIE-LABlab(45.97, -28.56, 38.18)
CIE-LCHlch(45.97, 47.68, 126.79°)
OKLaboklab(52.46% -0.08 0.0878)
OKLCHoklch(52.46% 0.119 132.3)
XYZxyz(10.3238, 15.2480, 4.4063)
Luminance0.1525 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7828 #512878
analogous
#777828 #4F7828 #287829
triadic
#4F7828 #284F78 #78284F
tetradic
#4F7828 #287778 #512878 #782928
square
#4F7828 #287778 #512878 #782928
split-complementary
#4F7828 #292878 #782877
monochromatic
#131C09 #314A19 #4F7828 #6DA637 #8CC654

Accessibility & contrast

On white

5.19
#4F7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#4F7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7828
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7828#FFFFFF#000000##FFFFFF
##4F78281.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1E
Deuteranopia (green-blind)
#776C2E
Tritanopia (blue-blind)
#507367
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f7828;
/* rgb */ color: rgb(79, 120, 40);
/* oklch */ color: oklch(52.5% 0.119 132.3);
Tailwind
colors: {
  custom: {
    50: '#839f66',
    500: '#4f7828',
    950: '#000000',
  },
}
SCSS
$custom: #4f7828;
$custom-light: #839f66;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7828",
  "rgb": {
    "r": 79,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 90.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52456,
    "c": 0.11882,
    "h": 132.3
  },
  "luminance": 0.15248
}

Semantic roles & 50–950 ramp

primary
#4F7828
secondary
#7F52AA
accent
#4EDA96
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #4F7828

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

Preview Lab → · Contrast checker → · Palette generator →

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