#4C7A17#4C7A17

#4C7A17 is a mid, vivid yellow-green. Relative luminance 0.155; OKLCH L 52.7% C 0.135 H 132.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#4C7A17
RGBrgb(76, 122, 23)
HSLhsl(88, 68%, 28%)
HSVhsv(88, 81%, 48%)
CMYKcmyk(37.7%, 0%, 81.1%, 52.2%)
CIE-LABlab(46.33, -31.90, 45.28)
CIE-LCHlch(46.33, 55.39, 125.16°)
OKLaboklab(52.67% -0.0903 0.1002)
OKLCHoklch(52.67% 0.135 132)
XYZxyz(10.0946, 15.5170, 3.2737)
Luminance0.1552 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7A17 #45177A
analogous
#7A7617 #4C7A17 #1A7A17
triadic
#4C7A17 #174C7A #7A174C
tetradic
#4C7A17 #177A76 #45177A #7A171A
square
#4C7A17 #177A76 #45177A #7A171A
split-complementary
#4C7A17 #171A7A #76177A
monochromatic
#101A05 #2C470D #4C7A17 #6CAD21 #8CD933

Accessibility & contrast

On white

5.12
#4C7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#4C7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7A17
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7A17#FFFFFF#000000##FFFFFF
##4C7A171.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#796D22
Tritanopia (blue-blind)
#4D7568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4c7a17;
/* rgb */ color: rgb(76, 122, 23);
/* oklch */ color: oklch(52.7% 0.135 132.0);
Tailwind
colors: {
  custom: {
    50: '#83a15d',
    500: '#4c7a17',
    950: '#000000',
  },
}
SCSS
$custom: #4c7a17;
$custom-light: #83a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7a17",
  "rgb": {
    "r": 76,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 87.879,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52667,
    "c": 0.13488,
    "h": 132
  },
  "luminance": 0.15517
}

Semantic roles & 50–950 ramp

primary
#4C7A17
secondary
#723EAF
accent
#3DEB8E
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4C7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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