#4C8117#4C8117

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

Color values

HEX#4C8117
RGBrgb(76, 129, 23)
HSLhsl(90, 70%, 30%)
HSVhsv(90, 82%, 51%)
CMYKcmyk(41.1%, 0%, 82.2%, 49.4%)
CIE-LABlab(48.63, -35.04, 47.42)
CIE-LCHlch(48.63, 58.96, 126.46°)
OKLaboklab(54.55% -0.0988 0.1047)
OKLCHoklch(54.55% 0.144 133.3)
XYZxyz(10.9852, 17.2983, 3.5705)
Luminance0.1730 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8117 #4C1781
analogous
#818117 #4C8117 #178117
triadic
#4C8117 #174C81 #81174C
tetradic
#4C8117 #178181 #4C1781 #811717
square
#4C8117 #178181 #4C1781 #811717
split-complementary
#4C8117 #171781 #811781
monochromatic
#0F1A05 #2D4D0E #4C8117 #6BB520 #89DB37

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C8117#FFFFFF#000000##FFFFFF
##4C81171.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)
#7F7223
Tritanopia (blue-blind)
#4C7C6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4c8117;
/* rgb */ color: rgb(76, 129, 23);
/* oklch */ color: oklch(54.5% 0.144 133.3);
Tailwind
colors: {
  custom: {
    50: '#83a65e',
    500: '#4c8117',
    950: '#000000',
  },
}
SCSS
$custom: #4c8117;
$custom-light: #83a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8117",
  "rgb": {
    "r": 76,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 90,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54548,
    "c": 0.14391,
    "h": 133.3
  },
  "luminance": 0.17299
}

Semantic roles & 50–950 ramp

primary
#4C8117
secondary
#7A3EB5
accent
#3BED94
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C8117

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

Preview Lab → · Contrast checker → · Palette generator →

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