#4C7D17#4C7D17

#4C7D17 is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.5% C 0.139 H 132.6°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#4C7D17
RGBrgb(76, 125, 23)
HSLhsl(89, 69%, 29%)
HSVhsv(89, 82%, 49%)
CMYKcmyk(39.2%, 0%, 81.6%, 51%)
CIE-LABlab(47.32, -33.26, 46.20)
CIE-LCHlch(47.32, 56.93, 125.75°)
OKLaboklab(53.47% -0.094 0.1021)
OKLCHoklch(53.47% 0.139 132.6)
XYZxyz(10.4686, 16.2651, 3.3983)
Luminance0.1627 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7D17 #48177D
analogous
#7D7B17 #4C7D17 #197D17
triadic
#4C7D17 #174C7D #7D174C
tetradic
#4C7D17 #177D7B #48177D #7D1719
square
#4C7D17 #177D7B #48177D #7D1719
split-complementary
#4C7D17 #17197D #7B177D
monochromatic
#101A05 #2D490D #4C7D17 #6BB121 #8ADA35

Accessibility & contrast

On white

4.94
#4C7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#4C7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7D17
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7D17#FFFFFF#000000##FFFFFF
##4C7D171.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7C6F22
Tritanopia (blue-blind)
#4D786A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4c7d17;
/* rgb */ color: rgb(76, 125, 23);
/* oklch */ color: oklch(53.5% 0.139 132.6);
Tailwind
colors: {
  custom: {
    50: '#83a35e',
    500: '#4c7d17',
    950: '#000000',
  },
}
SCSS
$custom: #4c7d17;
$custom-light: #83a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7d17",
  "rgb": {
    "r": 76,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 88.824,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53473,
    "c": 0.13878,
    "h": 132.6
  },
  "luminance": 0.16266
}

Semantic roles & 50–950 ramp

primary
#4C7D17
secondary
#763EB2
accent
#3CEC90
background
#F8FAF5
surface
#EFF3E9
border
#CACDC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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