#4C7215#4C7215

#4C7215 is a mid, vivid yellow-green. Relative luminance 0.136; OKLCH L 50.5% C 0.125 H 130.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#4C7215
RGBrgb(76, 114, 21)
HSLhsl(85, 69%, 26%)
HSVhsv(85, 82%, 45%)
CMYKcmyk(33.3%, 0%, 81.6%, 55.3%)
CIE-LABlab(43.69, -28.27, 43.48)
CIE-LCHlch(43.69, 51.86, 123.03°)
OKLaboklab(50.51% -0.0806 0.0961)
OKLCHoklch(50.51% 0.125 130)
XYZxyz(9.1331, 13.6250, 2.8580)
Luminance0.1363 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7215 #3B1572
analogous
#726A15 #4C7215 #1E7215
triadic
#4C7215 #154C72 #72154C
tetradic
#4C7215 #15726A #3B1572 #72151E
square
#4C7215 #15726A #3B1572 #72151E
split-complementary
#4C7215 #151E72 #6A1572
monochromatic
#111A05 #2A3E0B #4C7215 #6EA61F #91D82A

Accessibility & contrast

On white

5.64
#4C7215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#4C7215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7215
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7215#FFFFFF#000000##FFFFFF
##4C72151.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#72661F
Tritanopia (blue-blind)
#4E6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4c7215;
/* rgb */ color: rgb(76, 114, 21);
/* oklch */ color: oklch(50.5% 0.125 130.0);
Tailwind
colors: {
  custom: {
    50: '#829b5b',
    500: '#4c7215',
    950: '#000000',
  },
}
SCSS
$custom: #4c7215;
$custom-light: #829b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7215",
  "rgb": {
    "r": 76,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 84.516,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.50506,
    "c": 0.12541,
    "h": 130
  },
  "luminance": 0.13625
}

Semantic roles & 50–950 ramp

primary
#4C7215
secondary
#673BA8
accent
#3CEC84
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7215

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

Preview Lab → · Contrast checker → · Palette generator →

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