#4C7C15#4C7C15

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

Color values

HEX#4C7C15
RGBrgb(76, 124, 21)
HSLhsl(88, 71%, 28%)
HSVhsv(88, 83%, 49%)
CMYKcmyk(38.7%, 0%, 83.1%, 51.4%)
CIE-LABlab(46.98, -32.91, 46.52)
CIE-LCHlch(46.98, 56.98, 125.28°)
OKLaboklab(53.19% -0.0932 0.1025)
OKLCHoklch(53.19% 0.138 132.3)
XYZxyz(10.3234, 16.0055, 3.2548)
Luminance0.1601 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7C15 #45157C
analogous
#7C7815 #4C7C15 #197C15
triadic
#4C7C15 #154C7C #7C154C
tetradic
#4C7C15 #157C78 #45157C #7C1519
square
#4C7C15 #157C78 #45157C #7C1519
split-complementary
#4C7C15 #15197C #78157C
monochromatic
#101A04 #2C480C #4C7C15 #6CB01E #8CDC30

Accessibility & contrast

On white

5.00
#4C7C15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#4C7C15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7C15
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7C15#FFFFFF#000000##FFFFFF
##4C7C151.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7B6E21
Tritanopia (blue-blind)
#4D7769
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4c7c15;
/* rgb */ color: rgb(76, 124, 21);
/* oklch */ color: oklch(53.2% 0.138 132.3);
Tailwind
colors: {
  custom: {
    50: '#83a25d',
    500: '#4c7c15',
    950: '#000000',
  },
}
SCSS
$custom: #4c7c15;
$custom-light: #83a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7c15",
  "rgb": {
    "r": 76,
    "g": 124,
    "b": 21
  },
  "hsl": {
    "h": 87.961,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53193,
    "c": 0.13849,
    "h": 132.3
  },
  "luminance": 0.16006
}

Semantic roles & 50–950 ramp

primary
#4C7C15
secondary
#723CB1
accent
#3AEE8E
background
#F8FAF5
surface
#EFF3E9
border
#CACDC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7C15

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

Preview Lab → · Contrast checker → · Palette generator →

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