#4A7517#4A7517

#4A7517 is a mid, vivid yellow-green. Relative luminance 0.142; OKLCH L 51.2% C 0.129 H 131.7°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#4A7517
RGBrgb(74, 117, 23)
HSLhsl(87, 67%, 27%)
HSVhsv(87, 80%, 46%)
CMYKcmyk(36.8%, 0%, 80.3%, 54.1%)
CIE-LABlab(44.58, -30.37, 43.59)
CIE-LCHlch(44.58, 53.12, 124.87°)
OKLaboklab(51.2% -0.086 0.0967)
OKLCHoklch(51.2% 0.129 131.7)
XYZxyz(9.3399, 14.2399, 3.0669)
Luminance0.1424 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7517 #421775
analogous
#757117 #4A7517 #1B7517
triadic
#4A7517 #174A75 #75174A
tetradic
#4A7517 #177571 #421775 #75171B
square
#4A7517 #177571 #421775 #75171B
split-complementary
#4A7517 #171B75 #711775
monochromatic
#101A05 #2A420D #4A7517 #6AA821 #8AD630

Accessibility & contrast

On white

5.46
#4A7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#4A7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7517
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7517#FFFFFF#000000##FFFFFF
##4A75171.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C01
Deuteranopia (green-blind)
#756821
Tritanopia (blue-blind)
#4B7063
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4a7517;
/* rgb */ color: rgb(74, 117, 23);
/* oklch */ color: oklch(51.2% 0.129 131.7);
Tailwind
colors: {
  custom: {
    50: '#819d5c',
    500: '#4a7517',
    950: '#000000',
  },
}
SCSS
$custom: #4a7517;
$custom-light: #819d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7517",
  "rgb": {
    "r": 74,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 87.447,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.512,
    "c": 0.12941,
    "h": 131.7
  },
  "luminance": 0.1424
}

Semantic roles & 50–950 ramp

primary
#4A7517
secondary
#6F3DAA
accent
#3EEA8D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7517

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

Preview Lab → · Contrast checker → · Palette generator →

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