#4C8F18#4C8F18

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

Color values

HEX#4C8F18
RGBrgb(76, 143, 24)
HSLhsl(94, 71%, 33%)
HSVhsv(94, 83%, 56%)
CMYKcmyk(46.9%, 0%, 83.2%, 43.9%)
CIE-LABlab(53.22, -40.95, 51.33)
CIE-LCHlch(53.22, 65.67, 128.58°)
OKLaboklab(58.31% -0.1146 0.1131)
OKLCHoklch(58.31% 0.161 135.4)
XYZxyz(12.9675, 21.2466, 4.2817)
Luminance0.2125 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8F18 #5B188F
analogous
#878F18 #4C8F18 #188F20
triadic
#4C8F18 #184C8F #8F184C
tetradic
#4C8F18 #18878F #5B188F #8F2018
square
#4C8F18 #18878F #5B188F #8F2018
split-complementary
#4C8F18 #20188F #8F1887
monochromatic
#142606 #305B0F #4C8F18 #68C321 #87DF42

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C8F18#FFFFFF#000000##000000
##4C8F181.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)
#948300
Deuteranopia (green-blind)
#8C7D26
Tritanopia (blue-blind)
#4A897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4c8f18;
/* rgb */ color: rgb(76, 143, 24);
/* oklch */ color: oklch(58.3% 0.161 135.4);
Tailwind
colors: {
  custom: {
    50: '#85b061',
    500: '#4c8f18',
    950: '#000000',
  },
}
SCSS
$custom: #4c8f18;
$custom-light: #85b061;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8f18",
  "rgb": {
    "r": 76,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 93.782,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5831,
    "c": 0.16097,
    "h": 135.4
  },
  "luminance": 0.21247
}

Semantic roles & 50–950 ramp

primary
#4C8F18
secondary
#8943C0
accent
#3AEE9F
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #4C8F18

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

Preview Lab → · Contrast checker → · Palette generator →

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