#4A7D17#4A7D17

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

Color values

HEX#4A7D17
RGBrgb(74, 125, 23)
HSLhsl(90, 69%, 29%)
HSVhsv(90, 82%, 49%)
CMYKcmyk(40.8%, 0%, 81.6%, 51%)
CIE-LABlab(47.22, -34.01, 46.07)
CIE-LCHlch(47.22, 57.26, 126.43°)
OKLaboklab(53.36% -0.0958 0.1019)
OKLCHoklch(53.36% 0.14 133.3)
XYZxyz(10.3122, 16.1844, 3.3910)
Luminance0.1618 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7D17 #4A177D
analogous
#7D7D17 #4A7D17 #177D17
triadic
#4A7D17 #174A7D #7D174A
tetradic
#4A7D17 #177D7D #4A177D #7D1717
square
#4A7D17 #177D7D #4A177D #7D1717
split-complementary
#4A7D17 #17177D #7D177D
monochromatic
#0F1A05 #2B490D #4A7D17 #69B121 #87DA35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A7D17#FFFFFF#000000##FFFFFF
##4A7D171.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)
#7B6F22
Tritanopia (blue-blind)
#4A786A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4a7d17;
/* rgb */ color: rgb(74, 125, 23);
/* oklch */ color: oklch(53.4% 0.140 133.3);
Tailwind
colors: {
  custom: {
    50: '#82a35e',
    500: '#4a7d17',
    950: '#000000',
  },
}
SCSS
$custom: #4a7d17;
$custom-light: #82a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7d17",
  "rgb": {
    "r": 74,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 90,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53359,
    "c": 0.13988,
    "h": 133.3
  },
  "luminance": 0.16185
}

Semantic roles & 50–950 ramp

primary
#4A7D17
secondary
#783EB2
accent
#3CEC94
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4A7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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