#4C7C18#4C7C18

#4C7C18 is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.2% C 0.137 H 132.5°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#4C7C18
RGBrgb(76, 124, 24)
HSLhsl(89, 68%, 29%)
HSVhsv(89, 81%, 49%)
CMYKcmyk(38.7%, 0%, 80.6%, 51.4%)
CIE-LABlab(47.00, -32.75, 45.57)
CIE-LCHlch(47.00, 56.12, 125.70°)
OKLaboklab(53.21% -0.0925 0.101)
OKLCHoklch(53.21% 0.137 132.5)
XYZxyz(10.3529, 16.0173, 3.4101)
Luminance0.1602 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7C18 #48187C
analogous
#7C7A18 #4C7C18 #1A7C18
triadic
#4C7C18 #184C7C #7C184C
tetradic
#4C7C18 #187C7A #48187C #7C181A
square
#4C7C18 #187C7A #48187C #7C181A
split-complementary
#4C7C18 #181A7C #7A187C
monochromatic
#101A05 #2D490E #4C7C18 #6BAF22 #8AD836

Accessibility & contrast

On white

5.00
#4C7C18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#4C7C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7C18
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7C18#FFFFFF#000000##FFFFFF
##4C7C181.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#7B6E23
Tritanopia (blue-blind)
#4D7769
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4c7c18;
/* rgb */ color: rgb(76, 124, 24);
/* oklch */ color: oklch(53.2% 0.137 132.5);
Tailwind
colors: {
  custom: {
    50: '#83a25e',
    500: '#4c7c18',
    950: '#000000',
  },
}
SCSS
$custom: #4c7c18;
$custom-light: #83a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7c18",
  "rgb": {
    "r": 76,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 88.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5321,
    "c": 0.13695,
    "h": 132.5
  },
  "luminance": 0.16018
}

Semantic roles & 50–950 ramp

primary
#4C7C18
secondary
#763FB1
accent
#3DEA90
background
#F8FAF5
surface
#EFF3E9
border
#CACDC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7C18

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

Preview Lab → · Contrast checker → · Palette generator →

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