#4C7B15#4C7B15

#4C7B15 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.9% C 0.137 H 132.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#4C7B15
RGBrgb(76, 123, 21)
HSLhsl(88, 71%, 28%)
HSVhsv(88, 83%, 48%)
CMYKcmyk(38.2%, 0%, 82.9%, 51.8%)
CIE-LABlab(46.65, -32.46, 46.22)
CIE-LCHlch(46.65, 56.48, 125.08°)
OKLaboklab(52.92% -0.0919 0.1018)
OKLCHoklch(52.92% 0.137 132.1)
XYZxyz(10.1987, 15.7561, 3.2132)
Luminance0.1576 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7B15 #44157B
analogous
#7B7715 #4C7B15 #197B15
triadic
#4C7B15 #154C7B #7B154C
tetradic
#4C7B15 #157B77 #44157B #7B1519
square
#4C7B15 #157B77 #44157B #7B1519
split-complementary
#4C7B15 #15197B #77157B
monochromatic
#101A04 #2C470C #4C7B15 #6CAF1E #8CDB2F

Accessibility & contrast

On white

5.06
#4C7B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#4C7B15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7B15
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7B15#FFFFFF#000000##FFFFFF
##4C7B151.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7A6D21
Tritanopia (blue-blind)
#4D7668
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4c7b15;
/* rgb */ color: rgb(76, 123, 21);
/* oklch */ color: oklch(52.9% 0.137 132.1);
Tailwind
colors: {
  custom: {
    50: '#83a15c',
    500: '#4c7b15',
    950: '#000000',
  },
}
SCSS
$custom: #4c7b15;
$custom-light: #83a15c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7b15",
  "rgb": {
    "r": 76,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 87.647,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52924,
    "c": 0.13719,
    "h": 132.1
  },
  "luminance": 0.15757
}

Semantic roles & 50–950 ramp

primary
#4C7B15
secondary
#713BB0
accent
#3AEE8D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F04
muted
#7C7E79

Preview Lab

Preview with #4C7B15

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

Preview Lab → · Contrast checker → · Palette generator →

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