#4C7417#4C7417

#4C7417 is a mid, vivid yellow-green. Relative luminance 0.141; OKLCH L 51.1% C 0.127 H 130.7°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#4C7417
RGBrgb(76, 116, 23)
HSLhsl(86, 67%, 27%)
HSVhsv(86, 80%, 45%)
CMYKcmyk(34.5%, 0%, 80.2%, 54.5%)
CIE-LABlab(44.36, -29.11, 43.42)
CIE-LCHlch(44.36, 52.28, 123.83°)
OKLaboklab(51.05% -0.0828 0.0963)
OKLCHoklch(51.05% 0.127 130.7)
XYZxyz(9.3805, 14.0888, 3.0356)
Luminance0.1409 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7417 #3F1774
analogous
#746D17 #4C7417 #1E7417
triadic
#4C7417 #174C74 #74174C
tetradic
#4C7417 #17746D #3F1774 #74171E
square
#4C7417 #17746D #3F1774 #74171E
split-complementary
#4C7417 #171E74 #6D1774
monochromatic
#111A05 #2B410D #4C7417 #6DA721 #8ED630

Accessibility & contrast

On white

5.50
#4C7417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#4C7417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7417
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7417#FFFFFF#000000##FFFFFF
##4C74171.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B01
Deuteranopia (green-blind)
#746821
Tritanopia (blue-blind)
#4E6F63
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4c7417;
/* rgb */ color: rgb(76, 116, 23);
/* oklch */ color: oklch(51.1% 0.127 130.7);
Tailwind
colors: {
  custom: {
    50: '#829c5c',
    500: '#4c7417',
    950: '#000000',
  },
}
SCSS
$custom: #4c7417;
$custom-light: #829c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7417",
  "rgb": {
    "r": 76,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 85.806,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.51055,
    "c": 0.12696,
    "h": 130.7
  },
  "luminance": 0.14089
}

Semantic roles & 50–950 ramp

primary
#4C7417
secondary
#6C3DA9
accent
#3EEA88
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7417

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

Preview Lab → · Contrast checker → · Palette generator →

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