#4C8015#4C8015

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

Color values

HEX#4C8015
RGBrgb(76, 128, 21)
HSLhsl(89, 72%, 29%)
HSVhsv(89, 84%, 50%)
CMYKcmyk(40.6%, 0%, 83.6%, 49.8%)
CIE-LABlab(48.30, -34.70, 47.72)
CIE-LCHlch(48.30, 59.00, 126.02°)
OKLaboklab(54.27% -0.098 0.105)
OKLCHoklch(54.27% 0.144 133)
XYZxyz(10.8349, 17.0285, 3.4253)
Luminance0.1703 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8015 #491580
analogous
#807F15 #4C8015 #178015
triadic
#4C8015 #154C80 #80154C
tetradic
#4C8015 #15807F #491580 #801517
square
#4C8015 #15807F #491580 #801517
split-complementary
#4C8015 #151780 #7F1580
monochromatic
#101A04 #2D4B0C #4C8015 #6BB51E #8ADD32

Accessibility & contrast

On white

4.77
#4C8015 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4C8015
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8015#FFFFFF#000000##FFFFFF
##4C80151.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c8015;
/* rgb */ color: rgb(76, 128, 21);
/* oklch */ color: oklch(54.3% 0.144 133.0);
Tailwind
colors: {
  custom: {
    50: '#83a55d',
    500: '#4c8015',
    950: '#000000',
  },
}
SCSS
$custom: #4c8015;
$custom-light: #83a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8015",
  "rgb": {
    "r": 76,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 89.159,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54268,
    "c": 0.14361,
    "h": 133
  },
  "luminance": 0.17029
}

Semantic roles & 50–950 ramp

primary
#4C8015
secondary
#773CB5
accent
#39EF91
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C8015

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

Preview Lab → · Contrast checker → · Palette generator →

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