#4C7B1C#4C7B1C

#4C7B1C is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 53.0% C 0.133 H 132.7°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#4C7B1C
RGBrgb(76, 123, 28)
HSLhsl(90, 63%, 30%)
HSVhsv(90, 77%, 48%)
CMYKcmyk(38.2%, 0%, 77.2%, 51.8%)
CIE-LABlab(46.69, -32.05, 43.87)
CIE-LCHlch(46.69, 54.34, 126.15°)
OKLaboklab(52.97% -0.0903 0.0981)
OKLCHoklch(52.97% 0.133 132.7)
XYZxyz(10.2729, 15.7858, 3.6041)
Luminance0.1579 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7B1C #4B1C7B
analogous
#7B7B1C #4C7B1C #1D7B1C
triadic
#4C7B1C #1C4C7B #7B1C4C
tetradic
#4C7B1C #1C7B7B #4B1C7B #7B1C1D
square
#4C7B1C #1C7B7B #4B1C7B #7B1C1D
split-complementary
#4C7B1C #1C1D7B #7B1C7B
monochromatic
#0F1906 #2D4911 #4C7B1C #6BAD27 #89D33E

Accessibility & contrast

On white

5.05
#4C7B1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#4C7B1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7B1C
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7B1C#FFFFFF#000000##FFFFFF
##4C7B1C1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807108
Deuteranopia (green-blind)
#7A6D25
Tritanopia (blue-blind)
#4D7669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4c7b1c;
/* rgb */ color: rgb(76, 123, 28);
/* oklch */ color: oklch(53.0% 0.133 132.7);
Tailwind
colors: {
  custom: {
    50: '#82a160',
    500: '#4c7b1c',
    950: '#000000',
  },
}
SCSS
$custom: #4c7b1c;
$custom-light: #82a160;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7b1c",
  "rgb": {
    "r": 76,
    "g": 123,
    "b": 28
  },
  "hsl": {
    "h": 89.684,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52969,
    "c": 0.13333,
    "h": 132.7
  },
  "luminance": 0.15786
}

Semantic roles & 50–950 ramp

primary
#4C7B1C
secondary
#7944AF
accent
#42E693
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4C7B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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