#4C8018#4C8018

#4C8018 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.3% C 0.142 H 133.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#4C8018
RGBrgb(76, 128, 24)
HSLhsl(90, 68%, 30%)
HSVhsv(90, 81%, 50%)
CMYKcmyk(40.6%, 0%, 81.3%, 49.8%)
CIE-LABlab(48.31, -34.54, 46.80)
CIE-LCHlch(48.31, 58.17, 126.43°)
OKLaboklab(54.29% -0.0974 0.1035)
OKLCHoklch(54.29% 0.142 133.2)
XYZxyz(10.8644, 17.0403, 3.5806)
Luminance0.1704 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8018 #4C1880
analogous
#808018 #4C8018 #188018
triadic
#4C8018 #184C80 #80184C
tetradic
#4C8018 #188080 #4C1880 #801818
square
#4C8018 #188080 #4C1880 #801818
split-complementary
#4C8018 #181880 #801880
monochromatic
#0F1A05 #2D4C0E #4C8018 #6BB422 #89DA39

Accessibility & contrast

On white

4.76
#4C8018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#4C8018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C8018
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8018#FFFFFF#000000##FFFFFF
##4C80181.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7E7124
Tritanopia (blue-blind)
#4C7B6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4c8018;
/* rgb */ color: rgb(76, 128, 24);
/* oklch */ color: oklch(54.3% 0.142 133.2);
Tailwind
colors: {
  custom: {
    50: '#83a55f',
    500: '#4c8018',
    950: '#000000',
  },
}
SCSS
$custom: #4c8018;
$custom-light: #83a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8018",
  "rgb": {
    "r": 76,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 90,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54285,
    "c": 0.14212,
    "h": 133.2
  },
  "luminance": 0.17041
}

Semantic roles & 50–950 ramp

primary
#4C8018
secondary
#7A40B4
accent
#3DEB94
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C8018

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

Preview Lab → · Contrast checker → · Palette generator →

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