#4F781F#4F781F

#4F781F is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.4% C 0.126 H 131.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#4F781F
RGBrgb(79, 120, 31)
HSLhsl(88, 59%, 30%)
HSVhsv(88, 74%, 47%)
CMYKcmyk(34.2%, 0%, 74.2%, 52.9%)
CIE-LABlab(45.90, -29.29, 41.99)
CIE-LCHlch(45.90, 51.19, 124.90°)
OKLaboklab(52.37% -0.0828 0.0945)
OKLCHoklch(52.37% 0.126 131.2)
XYZxyz(10.1881, 15.1938, 3.6920)
Luminance0.1519 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F781F #481F78
analogous
#78741F #4F781F #23781F
triadic
#4F781F #1F4F78 #781F4F
tetradic
#4F781F #1F7874 #481F78 #781F23
square
#4F781F #1F7874 #481F78 #781F23
split-complementary
#4F781F #1F2378 #741F78
monochromatic
#101806 #2F4712 #4F781F #6FA92C #8ECE43

Accessibility & contrast

On white

5.20
#4F781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#4F781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F781F
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F781F#FFFFFF#000000##FFFFFF
##4F781F1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F10
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#517367
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f781f;
/* rgb */ color: rgb(79, 120, 31);
/* oklch */ color: oklch(52.4% 0.126 131.2);
Tailwind
colors: {
  custom: {
    50: '#849f61',
    500: '#4f781f',
    950: '#000000',
  },
}
SCSS
$custom: #4f781f;
$custom-light: #849f61;
$custom-dark: #000000;
JSON
{
  "hex": "#4f781f",
  "rgb": {
    "r": 79,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 87.64,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52372,
    "c": 0.12566,
    "h": 131.2
  },
  "luminance": 0.15194
}

Semantic roles & 50–950 ramp

primary
#4F781F
secondary
#7547AB
accent
#46E28E
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F781F

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

Preview Lab → · Contrast checker → · Palette generator →

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