#4C8017#4C8017

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

Color values

HEX#4C8017
RGBrgb(76, 128, 23)
HSLhsl(90, 70%, 30%)
HSVhsv(90, 82%, 50%)
CMYKcmyk(40.6%, 0%, 82%, 49.8%)
CIE-LABlab(48.31, -34.60, 47.12)
CIE-LCHlch(48.31, 58.46, 126.29°)
OKLaboklab(54.28% -0.0976 0.104)
OKLCHoklch(54.28% 0.143 133.2)
XYZxyz(10.8542, 17.0362, 3.5268)
Luminance0.1704 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8017 #4B1780
analogous
#807F17 #4C8017 #188017
triadic
#4C8017 #174C80 #80174C
tetradic
#4C8017 #17807F #4B1780 #801718
square
#4C8017 #17807F #4B1780 #801718
split-complementary
#4C8017 #171880 #7F1780
monochromatic
#0F1A05 #2D4C0E #4C8017 #6BB420 #89DB36

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C8017#FFFFFF#000000##FFFFFF
##4C80171.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)
#7E7123
Tritanopia (blue-blind)
#4C7B6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4c8017;
/* rgb */ color: rgb(76, 128, 23);
/* oklch */ color: oklch(54.3% 0.143 133.2);
Tailwind
colors: {
  custom: {
    50: '#83a55e',
    500: '#4c8017',
    950: '#000000',
  },
}
SCSS
$custom: #4c8017;
$custom-light: #83a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8017",
  "rgb": {
    "r": 76,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 89.714,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54279,
    "c": 0.14263,
    "h": 133.2
  },
  "luminance": 0.17037
}

Semantic roles & 50–950 ramp

primary
#4C8017
secondary
#793EB4
accent
#3BEC93
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C8017

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

Preview Lab → · Contrast checker → · Palette generator →

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