#4A8717#4A8717

#4A8717 is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.1% C 0.153 H 134.8°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4A8717
RGBrgb(74, 135, 23)
HSLhsl(93, 71%, 31%)
HSVhsv(93, 83%, 53%)
CMYKcmyk(45.2%, 0%, 83%, 47.1%)
CIE-LABlab(50.51, -38.35, 49.11)
CIE-LCHlch(50.51, 62.31, 127.98°)
OKLaboklab(56.06% -0.1075 0.1083)
OKLCHoklch(56.06% 0.153 134.8)
XYZxyz(11.6424, 18.8450, 3.8344)
Luminance0.1885 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A8717 #541787
analogous
#828717 #4A8717 #17871C
triadic
#4A8717 #174A87 #87174A
tetradic
#4A8717 #178287 #541787 #871C17
square
#4A8717 #178287 #541787 #871C17
split-complementary
#4A8717 #1C1787 #871782
monochromatic
#111E05 #2D530E #4A8717 #67BB20 #85DE3B

Accessibility & contrast

On white

4.40
#4A8717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#4A8717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A8717
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A8717#FFFFFF#000000##000000
##4A87171.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#847624
Tritanopia (blue-blind)
#498273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4a8717;
/* rgb */ color: rgb(74, 135, 23);
/* oklch */ color: oklch(56.1% 0.153 134.8);
Tailwind
colors: {
  custom: {
    50: '#83aa5f',
    500: '#4a8717',
    950: '#000000',
  },
}
SCSS
$custom: #4a8717;
$custom-light: #83aa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a8717",
  "rgb": {
    "r": 74,
    "g": 135,
    "b": 23
  },
  "hsl": {
    "h": 92.679,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56055,
    "c": 0.15258,
    "h": 134.8
  },
  "luminance": 0.18846
}

Semantic roles & 50–950 ramp

primary
#4A8717
secondary
#823FBB
accent
#3AEE9C
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #4A8717

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

Preview Lab → · Contrast checker → · Palette generator →

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