#4C6815#4C6815

#4C6815 is a mid, moderate yellow-green. Relative luminance 0.115; OKLCH L 47.8% C 0.112 H 126.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#4C6815
RGBrgb(76, 104, 21)
HSLhsl(80, 66%, 25%)
HSVhsv(80, 80%, 41%)
CMYKcmyk(26.9%, 0%, 79.8%, 59.2%)
CIE-LABlab(40.40, -23.36, 40.37)
CIE-LCHlch(40.40, 46.64, 120.05°)
OKLaboklab(47.83% -0.0673 0.0895)
OKLCHoklch(47.83% 0.112 126.9)
XYZxyz(8.0662, 11.4911, 2.5024)
Luminance0.1149 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6815 #311568
analogous
#685B15 #4C6815 #236815
triadic
#4C6815 #154C68 #68154C
tetradic
#4C6815 #15685B #311568 #681523
square
#4C6815 #15685B #311568 #681523
split-complementary
#4C6815 #152368 #5B1568
monochromatic
#131905 #27350B #4C6815 #719B1F #96CE2A

Accessibility & contrast

On white

6.37
#4C6815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4C6815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C6815
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6815#FFFFFF#000000##FFFFFF
##4C68151.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6003
Deuteranopia (green-blind)
#6A5F1D
Tritanopia (blue-blind)
#4F6358
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4c6815;
/* rgb */ color: rgb(76, 104, 21);
/* oklch */ color: oklch(47.8% 0.112 126.9);
Tailwind
colors: {
  custom: {
    50: '#81935a',
    500: '#4c6815',
    950: '#000000',
  },
}
SCSS
$custom: #4c6815;
$custom-light: #81935a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6815",
  "rgb": {
    "r": 76,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 80.241,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.47826,
    "c": 0.11201,
    "h": 126.9
  },
  "luminance": 0.11491
}

Semantic roles & 50–950 ramp

primary
#4C6815
secondary
#5C3A9F
accent
#3EE978
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4C6815

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

Preview Lab → · Contrast checker → · Palette generator →

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