#4A7D21#4A7D21

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

Color values

HEX#4A7D21
RGBrgb(74, 125, 33)
HSLhsl(93, 58%, 31%)
HSVhsv(93, 74%, 49%)
CMYKcmyk(40.8%, 0%, 73.6%, 51%)
CIE-LABlab(47.28, -33.36, 42.49)
CIE-LCHlch(47.28, 54.02, 128.13°)
OKLaboklab(53.43% -0.0933 0.096)
OKLCHoklch(53.43% 0.134 134.2)
XYZxyz(10.4320, 16.2324, 4.0220)
Luminance0.1623 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7D21 #54217D
analogous
#787D21 #4A7D21 #217D26
triadic
#4A7D21 #214A7D #7D214A
tetradic
#4A7D21 #21787D #54217D #7D2621
square
#4A7D21 #21787D #54217D #7D2621
split-complementary
#4A7D21 #26217D #7D2178
monochromatic
#111C07 #2D4D14 #4A7D21 #67AD2E #85CF49

Accessibility & contrast

On white

4.95
#4A7D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4A7D21
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7D21#FFFFFF#000000##FFFFFF
##4A7D211.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a7d21;
/* rgb */ color: rgb(74, 125, 33);
/* oklch */ color: oklch(53.4% 0.134 134.2);
Tailwind
colors: {
  custom: {
    50: '#81a362',
    500: '#4a7d21',
    950: '#000000',
  },
}
SCSS
$custom: #4a7d21;
$custom-light: #81a362;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7d21",
  "rgb": {
    "r": 74,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 93.261,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5343,
    "c": 0.13389,
    "h": 134.2
  },
  "luminance": 0.16233
}

Semantic roles & 50–950 ramp

primary
#4A7D21
secondary
#824AB0
accent
#46E19C
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4A7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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