#4C8118#4C8118

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

Color values

HEX#4C8118
RGBrgb(76, 129, 24)
HSLhsl(90, 69%, 30%)
HSVhsv(90, 81%, 51%)
CMYKcmyk(41.1%, 0%, 81.4%, 49.4%)
CIE-LABlab(48.64, -34.99, 47.11)
CIE-LCHlch(48.64, 58.68, 126.60°)
OKLaboklab(54.55% -0.0985 0.1042)
OKLCHoklch(54.55% 0.143 133.4)
XYZxyz(10.9954, 17.3024, 3.6243)
Luminance0.1730 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8118 #4D1881
analogous
#808118 #4C8118 #188119
triadic
#4C8118 #184C81 #81184C
tetradic
#4C8118 #188081 #4D1881 #811918
square
#4C8118 #188081 #4D1881 #811918
split-complementary
#4C8118 #191881 #811880
monochromatic
#0F1A05 #2E4D0E #4C8118 #6AB522 #89DA39

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C8118#FFFFFF#000000##FFFFFF
##4C81181.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)
#867600
Deuteranopia (green-blind)
#7F7224
Tritanopia (blue-blind)
#4C7C6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4c8118;
/* rgb */ color: rgb(76, 129, 24);
/* oklch */ color: oklch(54.6% 0.143 133.4);
Tailwind
colors: {
  custom: {
    50: '#83a65f',
    500: '#4c8118',
    950: '#000000',
  },
}
SCSS
$custom: #4c8118;
$custom-light: #83a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8118",
  "rgb": {
    "r": 76,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 90.286,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.54553,
    "c": 0.14341,
    "h": 133.4
  },
  "luminance": 0.17303
}

Semantic roles & 50–950 ramp

primary
#4C8118
secondary
#7B40B5
accent
#3CEB95
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C8118

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

Preview Lab → · Contrast checker → · Palette generator →

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