#4F7A1C#4F7A1C

#4F7A1C is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 52.9% C 0.130 H 131.4°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#4F7A1C
RGBrgb(79, 122, 28)
HSLhsl(87, 63%, 29%)
HSVhsv(87, 77%, 48%)
CMYKcmyk(35.2%, 0%, 77%, 52.2%)
CIE-LABlab(46.53, -30.43, 43.77)
CIE-LCHlch(46.53, 53.31, 124.81°)
OKLaboklab(52.88% -0.0862 0.0978)
OKLCHoklch(52.88% 0.13 131.4)
XYZxyz(10.3935, 15.6648, 3.5744)
Luminance0.1567 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7A1C #471C7A
analogous
#7A761C #4F7A1C #207A1C
triadic
#4F7A1C #1C4F7A #7A1C4F
tetradic
#4F7A1C #1C7A76 #471C7A #7A1C20
square
#4F7A1C #1C7A76 #471C7A #7A1C20
split-complementary
#4F7A1C #1C207A #761C7A
monochromatic
#101906 #2F4811 #4F7A1C #6FAC27 #8FD33E

Accessibility & contrast

On white

5.08
#4F7A1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#4F7A1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7A1C
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7A1C#FFFFFF#000000##FFFFFF
##4F7A1C1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807008
Deuteranopia (green-blind)
#7A6D25
Tritanopia (blue-blind)
#507568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4f7a1c;
/* rgb */ color: rgb(79, 122, 28);
/* oklch */ color: oklch(52.9% 0.130 131.4);
Tailwind
colors: {
  custom: {
    50: '#84a060',
    500: '#4f7a1c',
    950: '#000000',
  },
}
SCSS
$custom: #4f7a1c;
$custom-light: #84a060;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7a1c",
  "rgb": {
    "r": 79,
    "g": 122,
    "b": 28
  },
  "hsl": {
    "h": 87.447,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52882,
    "c": 0.13032,
    "h": 131.4
  },
  "luminance": 0.15665
}

Semantic roles & 50–950 ramp

primary
#4F7A1C
secondary
#7444AE
accent
#42E68D
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4F7A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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