#4C8C17#4C8C17

#4C8C17 is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.5% C 0.158 H 135.0°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#4C8C17
RGBrgb(76, 140, 23)
HSLhsl(93, 72%, 32%)
HSVhsv(93, 84%, 55%)
CMYKcmyk(45.7%, 0%, 83.6%, 45.1%)
CIE-LABlab(52.23, -39.76, 50.72)
CIE-LCHlch(52.23, 64.45, 128.09°)
OKLaboklab(57.5% -0.1114 0.1116)
OKLCHoklch(57.5% 0.158 135)
XYZxyz(12.5130, 20.3538, 4.0798)
Luminance0.2036 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8C17 #57178C
analogous
#868C17 #4C8C17 #178C1D
triadic
#4C8C17 #174C8C #8C174C
tetradic
#4C8C17 #17868C #57178C #8C1D17
square
#4C8C17 #17868C #57178C #8C1D17
split-complementary
#4C8C17 #1D178C #8C1786
monochromatic
#132306 #2F570E #4C8C17 #69C120 #87DF3E

Accessibility & contrast

On white

4.14
#4C8C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#4C8C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8C17
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8C17#FFFFFF#000000##000000
##4C8C171.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#897B25
Tritanopia (blue-blind)
#4A8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4c8c17;
/* rgb */ color: rgb(76, 140, 23);
/* oklch */ color: oklch(57.5% 0.158 135.0);
Tailwind
colors: {
  custom: {
    50: '#85ae60',
    500: '#4c8c17',
    950: '#000000',
  },
}
SCSS
$custom: #4c8c17;
$custom-light: #85ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8c17",
  "rgb": {
    "r": 76,
    "g": 140,
    "b": 23
  },
  "hsl": {
    "h": 92.821,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.575,
    "c": 0.15772,
    "h": 135
  },
  "luminance": 0.20355
}

Semantic roles & 50–950 ramp

primary
#4C8C17
secondary
#853FBF
accent
#39EF9C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #4C8C17

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

Preview Lab → · Contrast checker → · Palette generator →

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