#4C7517#4C7517

#4C7517 is a mid, vivid yellow-green. Relative luminance 0.143; OKLCH L 51.3% C 0.128 H 130.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#4C7517
RGBrgb(76, 117, 23)
HSLhsl(86, 67%, 27%)
HSVhsv(86, 80%, 46%)
CMYKcmyk(35%, 0%, 80.3%, 54.1%)
CIE-LABlab(44.69, -29.58, 43.74)
CIE-LCHlch(44.69, 52.80, 124.07°)
OKLaboklab(51.32% -0.084 0.0969)
OKLCHoklch(51.32% 0.128 130.9)
XYZxyz(9.4964, 14.3206, 3.0742)
Luminance0.1432 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7517 #401775
analogous
#756F17 #4C7517 #1D7517
triadic
#4C7517 #174C75 #75174C
tetradic
#4C7517 #17756F #401775 #75171D
square
#4C7517 #17756F #401775 #75171D
split-complementary
#4C7517 #171D75 #6F1775
monochromatic
#111A05 #2B420D #4C7517 #6DA821 #8ED630

Accessibility & contrast

On white

5.43
#4C7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#4C7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7517
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7517#FFFFFF#000000##FFFFFF
##4C75171.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C01
Deuteranopia (green-blind)
#756921
Tritanopia (blue-blind)
#4E7063
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4c7517;
/* rgb */ color: rgb(76, 117, 23);
/* oklch */ color: oklch(51.3% 0.128 130.9);
Tailwind
colors: {
  custom: {
    50: '#829d5c',
    500: '#4c7517',
    950: '#000000',
  },
}
SCSS
$custom: #4c7517;
$custom-light: #829d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7517",
  "rgb": {
    "r": 76,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 86.17,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.51324,
    "c": 0.12829,
    "h": 130.9
  },
  "luminance": 0.14321
}

Semantic roles & 50–950 ramp

primary
#4C7517
secondary
#6D3DAA
accent
#3EEA89
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7517

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

Preview Lab → · Contrast checker → · Palette generator →

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