#4C7915#4C7915

#4C7915 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.4% C 0.135 H 131.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#4C7915
RGBrgb(76, 121, 21)
HSLhsl(87, 70%, 28%)
HSVhsv(87, 83%, 47%)
CMYKcmyk(37.2%, 0%, 82.6%, 52.5%)
CIE-LABlab(45.99, -31.55, 45.61)
CIE-LCHlch(45.99, 55.46, 124.67°)
OKLaboklab(52.39% -0.0895 0.1006)
OKLCHoklch(52.39% 0.135 131.7)
XYZxyz(9.9531, 15.2650, 3.1313)
Luminance0.1527 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7915 #421579
analogous
#797415 #4C7915 #1A7915
triadic
#4C7915 #154C79 #79154C
tetradic
#4C7915 #157974 #421579 #79151A
square
#4C7915 #157974 #421579 #79151A
split-complementary
#4C7915 #151A79 #741579
monochromatic
#101A05 #2B450C #4C7915 #6DAD1E #8DDB2E

Accessibility & contrast

On white

5.18
#4C7915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#4C7915 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7915
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7915#FFFFFF#000000##FFFFFF
##4C79151.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#786C20
Tritanopia (blue-blind)
#4D7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4c7915;
/* rgb */ color: rgb(76, 121, 21);
/* oklch */ color: oklch(52.4% 0.135 131.7);
Tailwind
colors: {
  custom: {
    50: '#83a05c',
    500: '#4c7915',
    950: '#000000',
  },
}
SCSS
$custom: #4c7915;
$custom-light: #83a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7915",
  "rgb": {
    "r": 76,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 87,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52386,
    "c": 0.13461,
    "h": 131.7
  },
  "luminance": 0.15265
}

Semantic roles & 50–950 ramp

primary
#4C7915
secondary
#6F3BAF
accent
#3BED8B
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7915

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

Preview Lab → · Contrast checker → · Palette generator →

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