#4C7A19#4C7A19

#4C7A19 is a mid, vivid yellow-green. Relative luminance 0.155; OKLCH L 52.7% C 0.134 H 132.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#4C7A19
RGBrgb(76, 122, 25)
HSLhsl(88, 66%, 29%)
HSVhsv(88, 80%, 48%)
CMYKcmyk(37.7%, 0%, 79.5%, 52.2%)
CIE-LABlab(46.35, -31.78, 44.62)
CIE-LCHlch(46.35, 54.78, 125.46°)
OKLaboklab(52.68% -0.0898 0.0991)
OKLCHoklch(52.68% 0.134 132.2)
XYZxyz(10.1154, 15.5253, 3.3832)
Luminance0.1553 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7A19 #47197A
analogous
#7A7819 #4C7A19 #1C7A19
triadic
#4C7A19 #194C7A #7A194C
tetradic
#4C7A19 #197A78 #47197A #7A191C
square
#4C7A19 #197A78 #47197A #7A191C
split-complementary
#4C7A19 #191C7A #78197A
monochromatic
#101905 #2C470F #4C7A19 #6CAD23 #8BD637

Accessibility & contrast

On white

5.12
#4C7A19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#4C7A19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7A19
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7A19#FFFFFF#000000##FFFFFF
##4C7A191.005.124.115.12
#FFFFFF5.121.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7002
Deuteranopia (green-blind)
#796D23
Tritanopia (blue-blind)
#4D7568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4c7a19;
/* rgb */ color: rgb(76, 122, 25);
/* oklch */ color: oklch(52.7% 0.134 132.2);
Tailwind
colors: {
  custom: {
    50: '#82a15e',
    500: '#4c7a19',
    950: '#000000',
  },
}
SCSS
$custom: #4c7a19;
$custom-light: #82a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7a19",
  "rgb": {
    "r": 76,
    "g": 122,
    "b": 25
  },
  "hsl": {
    "h": 88.454,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5268,
    "c": 0.13378,
    "h": 132.2
  },
  "luminance": 0.15526
}

Semantic roles & 50–950 ramp

primary
#4C7A19
secondary
#7540AF
accent
#3FE990
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4C7A19

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

Preview Lab → · Contrast checker → · Palette generator →

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