#4C8122#4C8122

#4C8122 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.6% C 0.137 H 134.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#4C8122
RGBrgb(76, 129, 34)
HSLhsl(93, 58%, 32%)
HSVhsv(93, 74%, 51%)
CMYKcmyk(41.1%, 0%, 73.6%, 49.4%)
CIE-LABlab(48.70, -34.34, 43.57)
CIE-LCHlch(48.70, 55.48, 128.25°)
OKLaboklab(54.62% -0.0961 0.0984)
OKLCHoklch(54.62% 0.137 134.3)
XYZxyz(11.1193, 17.3519, 4.2764)
Luminance0.1735 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8122 #572281
analogous
#7C8122 #4C8122 #228128
triadic
#4C8122 #224C81 #81224C
tetradic
#4C8122 #227C81 #572281 #812822
square
#4C8122 #227C81 #572281 #812822
split-complementary
#4C8122 #282281 #81227C
monochromatic
#132008 #2F5115 #4C8122 #69B12F #87D04D

Accessibility & contrast

On white

4.70
#4C8122 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#4C8122 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C8122
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8122#FFFFFF#000000##FFFFFF
##4C81221.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867612
Deuteranopia (green-blind)
#7F722B
Tritanopia (blue-blind)
#4B7C6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4c8122;
/* rgb */ color: rgb(76, 129, 34);
/* oklch */ color: oklch(54.6% 0.137 134.3);
Tailwind
colors: {
  custom: {
    50: '#83a663',
    500: '#4c8122',
    950: '#000000',
  },
}
SCSS
$custom: #4c8122;
$custom-light: #83a663;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8122",
  "rgb": {
    "r": 76,
    "g": 129,
    "b": 34
  },
  "hsl": {
    "h": 93.474,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54624,
    "c": 0.13749,
    "h": 134.3
  },
  "luminance": 0.17353
}

Semantic roles & 50–950 ramp

primary
#4C8122
secondary
#854BB3
accent
#46E19D
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4C8122

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

Preview Lab → · Contrast checker → · Palette generator →

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