#4A7417#4A7417

#4A7417 is a mid, vivid yellow-green. Relative luminance 0.140; OKLCH L 50.9% C 0.128 H 131.4°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#4A7417
RGBrgb(74, 116, 23)
HSLhsl(87, 67%, 27%)
HSVhsv(87, 80%, 45%)
CMYKcmyk(36.2%, 0%, 80.2%, 54.5%)
CIE-LABlab(44.24, -29.90, 43.27)
CIE-LCHlch(44.24, 52.60, 124.64°)
OKLaboklab(50.93% -0.0848 0.096)
OKLCHoklch(50.93% 0.128 131.4)
XYZxyz(9.2240, 14.0081, 3.0283)
Luminance0.1401 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7417 #411774
analogous
#747017 #4A7417 #1C7417
triadic
#4A7417 #174A74 #74174A
tetradic
#4A7417 #177470 #411774 #74171C
square
#4A7417 #177470 #411774 #74171C
split-complementary
#4A7417 #171C74 #701774
monochromatic
#101A05 #29410D #4A7417 #6BA721 #8BD630

Accessibility & contrast

On white

5.52
#4A7417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#4A7417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7417
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7417#FFFFFF#000000##FFFFFF
##4A74171.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B01
Deuteranopia (green-blind)
#746821
Tritanopia (blue-blind)
#4B6F63
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4a7417;
/* rgb */ color: rgb(74, 116, 23);
/* oklch */ color: oklch(50.9% 0.128 131.4);
Tailwind
colors: {
  custom: {
    50: '#819c5c',
    500: '#4a7417',
    950: '#000000',
  },
}
SCSS
$custom: #4a7417;
$custom-light: #819c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7417",
  "rgb": {
    "r": 74,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 87.097,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.5093,
    "c": 0.12809,
    "h": 131.4
  },
  "luminance": 0.14008
}

Semantic roles & 50–950 ramp

primary
#4A7417
secondary
#6E3DA9
accent
#3EEA8C
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7417

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

Preview Lab → · Contrast checker → · Palette generator →

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