#4C7917#4C7917

#4C7917 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.4% C 0.134 H 131.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#4C7917
RGBrgb(76, 121, 23)
HSLhsl(88, 68%, 28%)
HSVhsv(88, 81%, 47%)
CMYKcmyk(37.2%, 0%, 81%, 52.5%)
CIE-LABlab(46.01, -31.44, 44.98)
CIE-LCHlch(46.01, 54.87, 124.96°)
OKLaboklab(52.4% -0.0891 0.0995)
OKLCHoklch(52.4% 0.134 131.8)
XYZxyz(9.9724, 15.2727, 3.2329)
Luminance0.1527 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7917 #441779
analogous
#797517 #4C7917 #1B7917
triadic
#4C7917 #174C79 #79174C
tetradic
#4C7917 #177975 #441779 #79171B
square
#4C7917 #177975 #441779 #79171B
split-complementary
#4C7917 #171B79 #751779
monochromatic
#101A05 #2C460D #4C7917 #6CAC21 #8CD832

Accessibility & contrast

On white

5.18
#4C7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#4C7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7917
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7917#FFFFFF#000000##FFFFFF
##4C79171.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#786C22
Tritanopia (blue-blind)
#4D7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4c7917;
/* rgb */ color: rgb(76, 121, 23);
/* oklch */ color: oklch(52.4% 0.134 131.8);
Tailwind
colors: {
  custom: {
    50: '#82a05d',
    500: '#4c7917',
    950: '#000000',
  },
}
SCSS
$custom: #4c7917;
$custom-light: #82a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7917",
  "rgb": {
    "r": 76,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 87.551,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52398,
    "c": 0.13357,
    "h": 131.8
  },
  "luminance": 0.15273
}

Semantic roles & 50–950 ramp

primary
#4C7917
secondary
#713EAE
accent
#3DEB8D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4C7917

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

Preview Lab → · Contrast checker → · Palette generator →

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