#4C7118#4C7118

#4C7118 is a mid, vivid yellow-green. Relative luminance 0.134; OKLCH L 50.3% C 0.122 H 130.0°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#4C7118
RGBrgb(76, 113, 24)
HSLhsl(85, 65%, 27%)
HSVhsv(85, 79%, 44%)
CMYKcmyk(32.7%, 0%, 78.8%, 55.7%)
CIE-LABlab(43.38, -27.62, 42.13)
CIE-LCHlch(43.38, 50.38, 123.25°)
OKLaboklab(50.26% -0.0786 0.0937)
OKLCHoklch(50.26% 0.122 130)
XYZxyz(9.0504, 13.4124, 2.9760)
Luminance0.1341 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7118 #3D1871
analogous
#716A18 #4C7118 #1F7118
triadic
#4C7118 #184C71 #71184C
tetradic
#4C7118 #18716A #3D1871 #71181F
square
#4C7118 #18716A #3D1871 #71181F
split-complementary
#4C7118 #181F71 #6A1871
monochromatic
#111905 #2A3F0D #4C7118 #6EA323 #8FD330

Accessibility & contrast

On white

5.70
#4C7118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#4C7118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7118
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7118#FFFFFF#000000##FFFFFF
##4C71181.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776805
Deuteranopia (green-blind)
#716621
Tritanopia (blue-blind)
#4E6C60
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4c7118;
/* rgb */ color: rgb(76, 113, 24);
/* oklch */ color: oklch(50.3% 0.122 130.0);
Tailwind
colors: {
  custom: {
    50: '#829a5c',
    500: '#4c7118',
    950: '#000000',
  },
}
SCSS
$custom: #4c7118;
$custom-light: #829a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7118",
  "rgb": {
    "r": 76,
    "g": 113,
    "b": 24
  },
  "hsl": {
    "h": 84.944,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.50257,
    "c": 0.12236,
    "h": 130
  },
  "luminance": 0.13413
}

Semantic roles & 50–950 ramp

primary
#4C7118
secondary
#6A3EA6
accent
#40E886
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7118

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

Preview Lab → · Contrast checker → · Palette generator →

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