#4C8917#4C8917

#4C8917 is a mid, vivid yellow-green. Relative luminance 0.195; OKLCH L 56.7% C 0.154 H 134.6°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#4C8917
RGBrgb(76, 137, 23)
HSLhsl(92, 71%, 31%)
HSVhsv(92, 83%, 54%)
CMYKcmyk(44.5%, 0%, 83.2%, 46.3%)
CIE-LABlab(51.25, -38.50, 49.83)
CIE-LCHlch(51.25, 62.97, 127.69°)
OKLaboklab(56.7% -0.108 0.1097)
OKLCHoklch(56.7% 0.154 134.6)
XYZxyz(12.0806, 19.4890, 3.9356)
Luminance0.1949 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8917 #541789
analogous
#858917 #4C8917 #17891B
triadic
#4C8917 #174C89 #89174C
tetradic
#4C8917 #178589 #541789 #891B17
square
#4C8917 #178589 #541789 #891B17
split-complementary
#4C8917 #1B1789 #891785
monochromatic
#122005 #2F550E #4C8917 #69BD20 #88DE3C

Accessibility & contrast

On white

4.29
#4C8917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#4C8917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8917
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8917#FFFFFF#000000##000000
##4C89171.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#4B8374
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4c8917;
/* rgb */ color: rgb(76, 137, 23);
/* oklch */ color: oklch(56.7% 0.154 134.6);
Tailwind
colors: {
  custom: {
    50: '#84ac5f',
    500: '#4c8917',
    950: '#000000',
  },
}
SCSS
$custom: #4c8917;
$custom-light: #84ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8917",
  "rgb": {
    "r": 76,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 92.105,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56696,
    "c": 0.15401,
    "h": 134.6
  },
  "luminance": 0.1949
}

Semantic roles & 50–950 ramp

primary
#4C8917
secondary
#823FBD
accent
#3AEE9A
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #4C8917

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

Preview Lab → · Contrast checker → · Palette generator →

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