#4C8F17#4C8F17

#4C8F17 is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.3% C 0.161 H 135.3°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#4C8F17
RGBrgb(76, 143, 23)
HSLhsl(94, 72%, 33%)
HSVhsv(94, 84%, 56%)
CMYKcmyk(46.9%, 0%, 83.9%, 43.9%)
CIE-LABlab(53.21, -41.00, 51.61)
CIE-LCHlch(53.21, 65.91, 128.47°)
OKLaboklab(58.3% -0.1148 0.1135)
OKLCHoklch(58.3% 0.161 135.3)
XYZxyz(12.9573, 21.2425, 4.2279)
Luminance0.2124 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8F17 #5A178F
analogous
#888F17 #4C8F17 #178F1E
triadic
#4C8F17 #174C8F #8F174C
tetradic
#4C8F17 #17888F #5A178F #8F1E17
square
#4C8F17 #17888F #5A178F #8F1E17
split-complementary
#4C8F17 #1E178F #8F1788
monochromatic
#142606 #305A0F #4C8F17 #68C41F #87E040

Accessibility & contrast

On white

4.00
#4C8F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#4C8F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8F17
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8F17#FFFFFF#000000##000000
##4C8F171.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8C7D26
Tritanopia (blue-blind)
#4A8979
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4c8f17;
/* rgb */ color: rgb(76, 143, 23);
/* oklch */ color: oklch(58.3% 0.161 135.3);
Tailwind
colors: {
  custom: {
    50: '#85b060',
    500: '#4c8f17',
    950: '#000000',
  },
}
SCSS
$custom: #4c8f17;
$custom-light: #85b060;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8f17",
  "rgb": {
    "r": 76,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 93.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58304,
    "c": 0.16141,
    "h": 135.3
  },
  "luminance": 0.21243
}

Semantic roles & 50–950 ramp

primary
#4C8F17
secondary
#8841C1
accent
#39EF9F
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #4C8F17

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

Preview Lab → · Contrast checker → · Palette generator →

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