#4C7D18#4C7D18

#4C7D18 is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.5% C 0.138 H 132.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#4C7D18
RGBrgb(76, 125, 24)
HSLhsl(89, 68%, 29%)
HSVhsv(89, 81%, 49%)
CMYKcmyk(39.2%, 0%, 80.8%, 51%)
CIE-LABlab(47.33, -33.20, 45.88)
CIE-LCHlch(47.33, 56.64, 125.89°)
OKLaboklab(53.48% -0.0937 0.1016)
OKLCHoklch(53.48% 0.138 132.7)
XYZxyz(10.4788, 16.2692, 3.4521)
Luminance0.1627 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7D18 #49187D
analogous
#7D7C18 #4C7D18 #1A7D18
triadic
#4C7D18 #184C7D #7D184C
tetradic
#4C7D18 #187D7C #49187D #7D181A
square
#4C7D18 #187D7C #49187D #7D181A
split-complementary
#4C7D18 #181A7D #7C187D
monochromatic
#101A05 #2D4A0E #4C7D18 #6BB022 #8AD937

Accessibility & contrast

On white

4.94
#4C7D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#4C7D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7D18
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7D18#FFFFFF#000000##FFFFFF
##4C7D181.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#7C6F23
Tritanopia (blue-blind)
#4D786A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4c7d18;
/* rgb */ color: rgb(76, 125, 24);
/* oklch */ color: oklch(53.5% 0.138 132.7);
Tailwind
colors: {
  custom: {
    50: '#83a35e',
    500: '#4c7d18',
    950: '#000000',
  },
}
SCSS
$custom: #4c7d18;
$custom-light: #83a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7d18",
  "rgb": {
    "r": 76,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 89.109,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53479,
    "c": 0.13825,
    "h": 132.7
  },
  "luminance": 0.1627
}

Semantic roles & 50–950 ramp

primary
#4C7D18
secondary
#773FB2
accent
#3DEB91
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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