#4C7918#4C7918

#4C7918 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.4% C 0.133 H 131.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#4C7918
RGBrgb(76, 121, 24)
HSLhsl(88, 67%, 28%)
HSVhsv(88, 80%, 47%)
CMYKcmyk(37.2%, 0%, 80.2%, 52.5%)
CIE-LABlab(46.01, -31.38, 44.64)
CIE-LCHlch(46.01, 54.57, 125.11°)
OKLaboklab(52.4% -0.0888 0.099)
OKLCHoklch(52.4% 0.133 131.9)
XYZxyz(9.9826, 15.2768, 3.2867)
Luminance0.1528 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7918 #451879
analogous
#797518 #4C7918 #1B7918
triadic
#4C7918 #184C79 #79184C
tetradic
#4C7918 #187975 #451879 #79181B
square
#4C7918 #187975 #451879 #79181B
split-complementary
#4C7918 #181B79 #751879
monochromatic
#101A05 #2C460E #4C7918 #6CAC22 #8CD735

Accessibility & contrast

On white

5.18
#4C7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#4C7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7918
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7918#FFFFFF#000000##FFFFFF
##4C79181.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#786C22
Tritanopia (blue-blind)
#4D7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4c7918;
/* rgb */ color: rgb(76, 121, 24);
/* oklch */ color: oklch(52.4% 0.133 131.9);
Tailwind
colors: {
  custom: {
    50: '#82a05d',
    500: '#4c7918',
    950: '#000000',
  },
}
SCSS
$custom: #4c7918;
$custom-light: #82a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7918",
  "rgb": {
    "r": 76,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 87.835,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52404,
    "c": 0.13302,
    "h": 131.9
  },
  "luminance": 0.15277
}

Semantic roles & 50–950 ramp

primary
#4C7918
secondary
#723FAE
accent
#3EEA8E
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4C7918

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

Preview Lab → · Contrast checker → · Palette generator →

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