#4A7D22#4A7D22

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

Color values

HEX#4A7D22
RGBrgb(74, 125, 34)
HSLhsl(94, 57%, 31%)
HSVhsv(94, 73%, 49%)
CMYKcmyk(40.8%, 0%, 72.8%, 51%)
CIE-LABlab(47.29, -33.28, 42.09)
CIE-LCHlch(47.29, 53.66, 128.33°)
OKLaboklab(53.44% -0.0931 0.0953)
OKLCHoklch(53.44% 0.133 134.3)
XYZxyz(10.4462, 16.2380, 4.0969)
Luminance0.1624 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7D22 #55227D
analogous
#777D22 #4A7D22 #227D27
triadic
#4A7D22 #224A7D #7D224A
tetradic
#4A7D22 #22777D #55227D #7D2722
square
#4A7D22 #22777D #55227D #7D2722
split-complementary
#4A7D22 #27227D #7D2277
monochromatic
#111D08 #2E4D15 #4A7D22 #66AD2F #85CE4B

Accessibility & contrast

On white

4.94
#4A7D22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#4A7D22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7D22
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7D22#FFFFFF#000000##FFFFFF
##4A7D221.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827313
Deuteranopia (green-blind)
#7B6F2A
Tritanopia (blue-blind)
#49786B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4a7d22;
/* rgb */ color: rgb(74, 125, 34);
/* oklch */ color: oklch(53.4% 0.133 134.3);
Tailwind
colors: {
  custom: {
    50: '#81a363',
    500: '#4a7d22',
    950: '#000000',
  },
}
SCSS
$custom: #4a7d22;
$custom-light: #81a363;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7d22",
  "rgb": {
    "r": 74,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 93.626,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53438,
    "c": 0.13319,
    "h": 134.3
  },
  "luminance": 0.16239
}

Semantic roles & 50–950 ramp

primary
#4A7D22
secondary
#834BB0
accent
#47E09D
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4A7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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