#4A7017#4A7017

#4A7017 is a mid, vivid yellow-green. Relative luminance 0.131; OKLCH L 49.9% C 0.123 H 130.5°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#4A7017
RGBrgb(74, 112, 23)
HSLhsl(86, 66%, 26%)
HSVhsv(86, 79%, 44%)
CMYKcmyk(33.9%, 0%, 79.5%, 56.1%)
CIE-LABlab(42.92, -28.01, 42.01)
CIE-LCHlch(42.92, 50.50, 123.69°)
OKLaboklab(49.85% -0.0797 0.0934)
OKLCHoklch(49.85% 0.123 130.5)
XYZxyz(8.7728, 13.1058, 2.8779)
Luminance0.1311 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7017 #3D1770
analogous
#706A17 #4A7017 #1E7017
triadic
#4A7017 #174A70 #70174A
tetradic
#4A7017 #17706A #3D1770 #70171E
square
#4A7017 #17706A #3D1770 #70171E
split-complementary
#4A7017 #171E70 #6A1770
monochromatic
#111905 #283D0D #4A7017 #6CA321 #8DD42D

Accessibility & contrast

On white

5.80
#4A7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#4A7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7017
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7017#FFFFFF#000000##FFFFFF
##4A70171.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#706420
Tritanopia (blue-blind)
#4C6B5F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4a7017;
/* rgb */ color: rgb(74, 112, 23);
/* oklch */ color: oklch(49.9% 0.123 130.5);
Tailwind
colors: {
  custom: {
    50: '#80995c',
    500: '#4a7017',
    950: '#000000',
  },
}
SCSS
$custom: #4a7017;
$custom-light: #80995c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7017",
  "rgb": {
    "r": 74,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 85.618,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49852,
    "c": 0.12273,
    "h": 130.5
  },
  "luminance": 0.13106
}

Semantic roles & 50–950 ramp

primary
#4A7017
secondary
#6A3DA6
accent
#3FE987
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7017

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

Preview Lab → · Contrast checker → · Palette generator →

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