#4C7218#4C7218

#4C7218 is a mid, vivid yellow-green. Relative luminance 0.136; OKLCH L 50.5% C 0.124 H 130.3°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#4C7218
RGBrgb(76, 114, 24)
HSLhsl(85, 65%, 27%)
HSVhsv(85, 79%, 45%)
CMYKcmyk(33.3%, 0%, 78.9%, 55.3%)
CIE-LABlab(43.71, -28.10, 42.45)
CIE-LCHlch(43.71, 50.91, 123.50°)
OKLaboklab(50.53% -0.0799 0.0944)
OKLCHoklch(50.53% 0.124 130.3)
XYZxyz(9.1626, 13.6368, 3.0134)
Luminance0.1364 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7218 #3E1872
analogous
#726B18 #4C7218 #1F7218
triadic
#4C7218 #184C72 #72184C
tetradic
#4C7218 #18726B #3E1872 #72181F
square
#4C7218 #18726B #3E1872 #72181F
split-complementary
#4C7218 #181F72 #6B1872
monochromatic
#111905 #2A3F0D #4C7218 #6EA523 #8FD431

Accessibility & contrast

On white

5.63
#4C7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#4C7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7218
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7218#FFFFFF#000000##FFFFFF
##4C72181.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786904
Deuteranopia (green-blind)
#726621
Tritanopia (blue-blind)
#4E6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4c7218;
/* rgb */ color: rgb(76, 114, 24);
/* oklch */ color: oklch(50.5% 0.124 130.3);
Tailwind
colors: {
  custom: {
    50: '#829b5c',
    500: '#4c7218',
    950: '#000000',
  },
}
SCSS
$custom: #4c7218;
$custom-light: #829b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7218",
  "rgb": {
    "r": 76,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 85.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.50525,
    "c": 0.1237,
    "h": 130.3
  },
  "luminance": 0.13637
}

Semantic roles & 50–950 ramp

primary
#4C7218
secondary
#6B3EA7
accent
#40E887
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7218

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

Preview Lab → · Contrast checker → · Palette generator →

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