#4F802C#4F802C

#4F802C is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.6% C 0.127 H 134.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4F802C
RGBrgb(79, 128, 44)
HSLhsl(95, 49%, 34%)
HSVhsv(95, 66%, 50%)
CMYKcmyk(38.3%, 0%, 65.6%, 49.8%)
CIE-LABlab(48.61, -31.94, 39.23)
CIE-LCHlch(48.61, 50.58, 129.15°)
OKLaboklab(54.62% -0.0889 0.0906)
OKLCHoklch(54.62% 0.127 134.5)
XYZxyz(11.3980, 17.2819, 5.1176)
Luminance0.1728 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F802C #5D2C80
analogous
#79802C #4F802C #2C8033
triadic
#4F802C #2C4F80 #802C4F
tetradic
#4F802C #2C7980 #5D2C80 #80332C
square
#4F802C #2C7980 #5D2C80 #80332C
split-complementary
#4F802C #332C80 #802C79
monochromatic
#17250D #33521C #4F802C #6BAE3C #8AC85F

Accessibility & contrast

On white

4.71
#4F802C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#4F802C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F802C
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F802C#FFFFFF#000000##FFFFFF
##4F802C1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857622
Deuteranopia (green-blind)
#7E7233
Tritanopia (blue-blind)
#4E7B6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4f802c;
/* rgb */ color: rgb(79, 128, 44);
/* oklch */ color: oklch(54.6% 0.127 134.5);
Tailwind
colors: {
  custom: {
    50: '#84a569',
    500: '#4f802c',
    950: '#000000',
  },
}
SCSS
$custom: #4f802c;
$custom-light: #84a569;
$custom-dark: #000000;
JSON
{
  "hex": "#4f802c",
  "rgb": {
    "r": 79,
    "g": 128,
    "b": 44
  },
  "hsl": {
    "h": 95,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.54621,
    "c": 0.12692,
    "h": 134.5
  },
  "luminance": 0.17282
}

Semantic roles & 50–950 ramp

primary
#4F802C
secondary
#8B5AAE
accent
#4FD89F
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4F802C

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

Preview Lab → · Contrast checker → · Palette generator →

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