#4C7D2B#4C7D2B

#4C7D2B is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.6% C 0.125 H 134.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#4C7D2B
RGBrgb(76, 125, 43)
HSLhsl(96, 49%, 33%)
HSVhsv(96, 66%, 49%)
CMYKcmyk(39.2%, 0%, 65.6%, 51%)
CIE-LABlab(47.47, -31.76, 38.38)
CIE-LCHlch(47.47, 49.82, 129.61°)
OKLaboklab(53.64% -0.0883 0.0887)
OKLCHoklch(53.64% 0.125 134.9)
XYZxyz(10.7499, 16.3776, 4.8798)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7D2B #5C2B7D
analogous
#757D2B #4C7D2B #2B7D33
triadic
#4C7D2B #2B4C7D #7D2B4C
tetradic
#4C7D2B #2B757D #5C2B7D #7D332B
square
#4C7D2B #2B757D #5C2B7D #7D332B
split-complementary
#4C7D2B #332B7D #7D2B75
monochromatic
#15220C #304F1B #4C7D2B #68AB3B #87C75C

Accessibility & contrast

On white

4.91
#4C7D2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#4C7D2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7D2B
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7D2B#FFFFFF#000000##FFFFFF
##4C7D2B1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827321
Deuteranopia (green-blind)
#7B6F32
Tritanopia (blue-blind)
#4B786C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4c7d2b;
/* rgb */ color: rgb(76, 125, 43);
/* oklch */ color: oklch(53.6% 0.125 134.9);
Tailwind
colors: {
  custom: {
    50: '#82a368',
    500: '#4c7d2b',
    950: '#000000',
  },
}
SCSS
$custom: #4c7d2b;
$custom-light: #82a368;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7d2b",
  "rgb": {
    "r": 76,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 95.854,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53639,
    "c": 0.12517,
    "h": 134.9
  },
  "luminance": 0.16378
}

Semantic roles & 50–950 ramp

primary
#4C7D2B
secondary
#8A57AD
accent
#4FD8A1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4C7D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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