#4C7717#4C7717

#4C7717 is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 51.9% C 0.131 H 131.4°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#4C7717
RGBrgb(76, 119, 23)
HSLhsl(87, 68%, 28%)
HSVhsv(87, 81%, 47%)
CMYKcmyk(36.1%, 0%, 80.7%, 53.3%)
CIE-LABlab(45.35, -30.51, 44.36)
CIE-LCHlch(45.35, 53.84, 124.53°)
OKLaboklab(51.86% -0.0866 0.0982)
OKLCHoklch(51.86% 0.131 131.4)
XYZxyz(9.7319, 14.7916, 3.1528)
Luminance0.1479 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7717 #421777
analogous
#777217 #4C7717 #1C7717
triadic
#4C7717 #174C77 #77174C
tetradic
#4C7717 #177772 #421777 #77171C
square
#4C7717 #177772 #421777 #77171C
split-complementary
#4C7717 #171C77 #721777
monochromatic
#101A05 #2B440D #4C7717 #6DAA21 #8DD731

Accessibility & contrast

On white

5.31
#4C7717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#4C7717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7717
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7717#FFFFFF#000000##FFFFFF
##4C77171.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6D00
Deuteranopia (green-blind)
#776A21
Tritanopia (blue-blind)
#4D7265
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4c7717;
/* rgb */ color: rgb(76, 119, 23);
/* oklch */ color: oklch(51.9% 0.131 131.4);
Tailwind
colors: {
  custom: {
    50: '#829e5d',
    500: '#4c7717',
    950: '#000000',
  },
}
SCSS
$custom: #4c7717;
$custom-light: #829e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7717",
  "rgb": {
    "r": 76,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 86.875,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.51861,
    "c": 0.13093,
    "h": 131.4
  },
  "luminance": 0.14792
}

Semantic roles & 50–950 ramp

primary
#4C7717
secondary
#6F3EAC
accent
#3DEA8B
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7717

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

Preview Lab → · Contrast checker → · Palette generator →

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