#4A781F#4A781F

#4A781F is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.1% C 0.128 H 133.1°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#4A781F
RGBrgb(74, 120, 31)
HSLhsl(91, 59%, 30%)
HSVhsv(91, 74%, 47%)
CMYKcmyk(38.3%, 0%, 74.2%, 52.9%)
CIE-LABlab(45.62, -31.23, 41.61)
CIE-LCHlch(45.62, 52.03, 126.89°)
OKLaboklab(52.07% -0.0877 0.0938)
OKLCHoklch(52.07% 0.128 133.1)
XYZxyz(9.7877, 14.9873, 3.6732)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A781F #4D1F78
analogous
#77781F #4A781F #1F7821
triadic
#4A781F #1F4A78 #781F4A
tetradic
#4A781F #1F7778 #4D1F78 #78211F
square
#4A781F #1F7778 #4D1F78 #78211F
split-complementary
#4A781F #211F78 #781F77
monochromatic
#0F1806 #2C4712 #4A781F #68A92C #86CE43

Accessibility & contrast

On white

5.25
#4A781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#4A781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A781F
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A781F#FFFFFF#000000##FFFFFF
##4A781F1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E10
Deuteranopia (green-blind)
#776B27
Tritanopia (blue-blind)
#4A7367
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4a781f;
/* rgb */ color: rgb(74, 120, 31);
/* oklch */ color: oklch(52.1% 0.128 133.1);
Tailwind
colors: {
  custom: {
    50: '#819f61',
    500: '#4a781f',
    950: '#000000',
  },
}
SCSS
$custom: #4a781f;
$custom-light: #819f61;
$custom-dark: #000000;
JSON
{
  "hex": "#4a781f",
  "rgb": {
    "r": 74,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 91.011,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52067,
    "c": 0.12846,
    "h": 133.1
  },
  "luminance": 0.14988
}

Semantic roles & 50–950 ramp

primary
#4A781F
secondary
#7B47AB
accent
#46E297
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4A781F

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

Preview Lab → · Contrast checker → · Palette generator →

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