#4C7017#4C7017

#4C7017 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 50.0% C 0.122 H 129.6°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#4C7017
RGBrgb(76, 112, 23)
HSLhsl(84, 66%, 26%)
HSVhsv(84, 79%, 44%)
CMYKcmyk(32.1%, 0%, 79.5%, 56.1%)
CIE-LABlab(43.04, -27.20, 42.17)
CIE-LCHlch(43.04, 50.18, 122.82°)
OKLaboklab(49.98% -0.0776 0.0937)
OKLCHoklch(49.98% 0.122 129.6)
XYZxyz(8.9293, 13.1864, 2.8852)
Luminance0.1319 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7017 #3B1770
analogous
#706817 #4C7017 #1F7017
triadic
#4C7017 #174C70 #70174C
tetradic
#4C7017 #177068 #3B1770 #70171F
square
#4C7017 #177068 #3B1770 #70171F
split-complementary
#4C7017 #171F70 #681770
monochromatic
#111905 #2A3D0D #4C7017 #6EA321 #91D42D

Accessibility & contrast

On white

5.77
#4C7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#4C7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7017
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7017#FFFFFF#000000##FFFFFF
##4C70171.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766703
Deuteranopia (green-blind)
#716520
Tritanopia (blue-blind)
#4E6B5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4c7017;
/* rgb */ color: rgb(76, 112, 23);
/* oklch */ color: oklch(50.0% 0.122 129.6);
Tailwind
colors: {
  custom: {
    50: '#82995c',
    500: '#4c7017',
    950: '#000000',
  },
}
SCSS
$custom: #4c7017;
$custom-light: #82995c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7017",
  "rgb": {
    "r": 76,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 84.27,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49982,
    "c": 0.12162,
    "h": 129.6
  },
  "luminance": 0.13187
}

Semantic roles & 50–950 ramp

primary
#4C7017
secondary
#673DA6
accent
#3FE984
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7017

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

Preview Lab → · Contrast checker → · Palette generator →

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