#4C7817#4C7817

#4C7817 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.1% C 0.132 H 131.6°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#4C7817
RGBrgb(76, 120, 23)
HSLhsl(87, 68%, 28%)
HSVhsv(87, 81%, 47%)
CMYKcmyk(36.7%, 0%, 80.8%, 52.9%)
CIE-LABlab(45.68, -30.98, 44.67)
CIE-LCHlch(45.68, 54.36, 124.74°)
OKLaboklab(52.13% -0.0878 0.0989)
OKLCHoklch(52.13% 0.132 131.6)
XYZxyz(9.8515, 15.0309, 3.1926)
Luminance0.1503 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7817 #431778
analogous
#787317 #4C7817 #1C7817
triadic
#4C7817 #174C78 #78174C
tetradic
#4C7817 #177873 #431778 #78171C
square
#4C7817 #177873 #431778 #78171C
split-complementary
#4C7817 #171C78 #731778
monochromatic
#101A05 #2B450D #4C7817 #6DAB21 #8CD832

Accessibility & contrast

On white

5.24
#4C7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#4C7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7817
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7817#FFFFFF#000000##FFFFFF
##4C78171.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#786B21
Tritanopia (blue-blind)
#4D7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4c7817;
/* rgb */ color: rgb(76, 120, 23);
/* oklch */ color: oklch(52.1% 0.132 131.6);
Tailwind
colors: {
  custom: {
    50: '#829f5d',
    500: '#4c7817',
    950: '#000000',
  },
}
SCSS
$custom: #4c7817;
$custom-light: #829f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7817",
  "rgb": {
    "r": 76,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 87.216,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5213,
    "c": 0.13225,
    "h": 131.6
  },
  "luminance": 0.15031
}

Semantic roles & 50–950 ramp

primary
#4C7817
secondary
#703EAD
accent
#3DEB8C
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4C7817

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

Preview Lab → · Contrast checker → · Palette generator →

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