#4C7C1B#4C7C1B

#4C7C1B is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.2% C 0.135 H 132.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#4C7C1B
RGBrgb(76, 124, 27)
HSLhsl(90, 64%, 30%)
HSVhsv(90, 78%, 49%)
CMYKcmyk(38.7%, 0%, 78.2%, 51.4%)
CIE-LABlab(47.01, -32.57, 44.55)
CIE-LCHlch(47.01, 55.19, 126.17°)
OKLaboklab(53.23% -0.0918 0.0993)
OKLCHoklch(53.23% 0.135 132.8)
XYZxyz(10.3858, 16.0305, 3.5837)
Luminance0.1603 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7C1B #4B1B7C
analogous
#7C7C1B #4C7C1B #1C7C1B
triadic
#4C7C1B #1B4C7C #7C1B4C
tetradic
#4C7C1B #1B7C7C #4B1B7C #7C1B1C
square
#4C7C1B #1B7C7C #4B1B7C #7C1B1C
split-complementary
#4C7C1B #1B1C7C #7C1B7C
monochromatic
#0F1905 #2D4A10 #4C7C1B #6BAE26 #89D53D

Accessibility & contrast

On white

4.99
#4C7C1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#4C7C1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7C1B
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7C1B#FFFFFF#000000##FFFFFF
##4C7C1B1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817205
Deuteranopia (green-blind)
#7B6E25
Tritanopia (blue-blind)
#4D776A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4c7c1b;
/* rgb */ color: rgb(76, 124, 27);
/* oklch */ color: oklch(53.2% 0.135 132.8);
Tailwind
colors: {
  custom: {
    50: '#83a25f',
    500: '#4c7c1b',
    950: '#000000',
  },
}
SCSS
$custom: #4c7c1b;
$custom-light: #83a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7c1b",
  "rgb": {
    "r": 76,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 89.691,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5323,
    "c": 0.13526,
    "h": 132.8
  },
  "luminance": 0.16031
}

Semantic roles & 50–950 ramp

primary
#4C7C1B
secondary
#7943B0
accent
#41E793
background
#F8FAF5
surface
#EFF3EA
border
#CACDC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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