#4A7D18#4A7D18

#4A7D18 is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.4% C 0.139 H 133.3°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#4A7D18
RGBrgb(74, 125, 24)
HSLhsl(90, 68%, 29%)
HSVhsv(90, 81%, 49%)
CMYKcmyk(40.8%, 0%, 80.8%, 51%)
CIE-LABlab(47.22, -33.95, 45.75)
CIE-LCHlch(47.22, 56.97, 126.58°)
OKLaboklab(53.36% -0.0956 0.1014)
OKLCHoklch(53.36% 0.139 133.3)
XYZxyz(10.3224, 16.1885, 3.4448)
Luminance0.1619 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7D18 #4B187D
analogous
#7D7D18 #4A7D18 #187D19
triadic
#4A7D18 #184A7D #7D184A
tetradic
#4A7D18 #187D7D #4B187D #7D1918
square
#4A7D18 #187D7D #4B187D #7D1918
split-complementary
#4A7D18 #19187D #7D187D
monochromatic
#0F1A05 #2C4A0E #4A7D18 #68B022 #87D937

Accessibility & contrast

On white

4.96
#4A7D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#4A7D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7D18
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7D18#FFFFFF#000000##FFFFFF
##4A7D181.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#7B6F23
Tritanopia (blue-blind)
#4A786A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4a7d18;
/* rgb */ color: rgb(74, 125, 24);
/* oklch */ color: oklch(53.4% 0.139 133.3);
Tailwind
colors: {
  custom: {
    50: '#81a35e',
    500: '#4a7d18',
    950: '#000000',
  },
}
SCSS
$custom: #4a7d18;
$custom-light: #81a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7d18",
  "rgb": {
    "r": 74,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 90.297,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53365,
    "c": 0.13936,
    "h": 133.3
  },
  "luminance": 0.16189
}

Semantic roles & 50–950 ramp

primary
#4A7D18
secondary
#793FB2
accent
#3DEB95
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4A7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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