#4C8115#4C8115

#4C8115 is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.5% C 0.145 H 133.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4C8115
RGBrgb(76, 129, 21)
HSLhsl(89, 72%, 29%)
HSVhsv(89, 84%, 51%)
CMYKcmyk(41.1%, 0%, 83.7%, 49.4%)
CIE-LABlab(48.62, -35.14, 48.02)
CIE-LCHlch(48.62, 59.50, 126.20°)
OKLaboklab(54.54% -0.0992 0.1056)
OKLCHoklch(54.54% 0.145 133.2)
XYZxyz(10.9659, 17.2906, 3.4689)
Luminance0.1729 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8115 #4A1581
analogous
#818015 #4C8115 #168115
triadic
#4C8115 #154C81 #81154C
tetradic
#4C8115 #158180 #4A1581 #811516
square
#4C8115 #158180 #4A1581 #811516
split-complementary
#4C8115 #151681 #801581
monochromatic
#101A04 #2D4C0C #4C8115 #6BB61E #8ADE33

Accessibility & contrast

On white

4.71
#4C8115 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#4C8115 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C8115
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8115#FFFFFF#000000##FFFFFF
##4C81151.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c8115;
/* rgb */ color: rgb(76, 129, 21);
/* oklch */ color: oklch(54.5% 0.145 133.2);
Tailwind
colors: {
  custom: {
    50: '#83a65d',
    500: '#4c8115',
    950: '#000000',
  },
}
SCSS
$custom: #4c8115;
$custom-light: #83a65d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8115",
  "rgb": {
    "r": 76,
    "g": 129,
    "b": 21
  },
  "hsl": {
    "h": 89.444,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54537,
    "c": 0.14487,
    "h": 133.2
  },
  "luminance": 0.17291
}

Semantic roles & 50–950 ramp

primary
#4C8115
secondary
#783CB6
accent
#39EF92
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C8115

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

Preview Lab → · Contrast checker → · Palette generator →

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