#4C6612#4C6612

#4C6612 is a mid, moderate yellow-green. Relative luminance 0.111; OKLCH L 47.3% C 0.111 H 126.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#4C6612
RGBrgb(76, 102, 18)
HSLhsl(79, 70%, 24%)
HSVhsv(79, 82%, 40%)
CMYKcmyk(25.5%, 0%, 82.4%, 60%)
CIE-LABlab(39.72, -22.51, 40.80)
CIE-LCHlch(39.72, 46.59, 118.89°)
OKLaboklab(47.27% -0.0652 0.0899)
OKLCHoklch(47.27% 0.111 126)
XYZxyz(7.8411, 11.0828, 2.2982)
Luminance0.1108 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6612 #2C1266
analogous
#665612 #4C6612 #226612
triadic
#4C6612 #124C66 #66124C
tetradic
#4C6612 #126656 #2C1266 #661222
square
#4C6612 #126656 #2C1266 #661222
split-complementary
#4C6612 #122266 #561266
monochromatic
#131A05 #253209 #4C6612 #739A1B #9ACE24

Accessibility & contrast

On white

6.53
#4C6612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#4C6612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C6612
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6612#FFFFFF#000000##FFFFFF
##4C66121.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F00
Deuteranopia (green-blind)
#685D1B
Tritanopia (blue-blind)
#506156
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4c6612;
/* rgb */ color: rgb(76, 102, 18);
/* oklch */ color: oklch(47.3% 0.111 126.0);
Tailwind
colors: {
  custom: {
    50: '#819158',
    500: '#4c6612',
    950: '#000000',
  },
}
SCSS
$custom: #4c6612;
$custom-light: #819158;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6612",
  "rgb": {
    "r": 76,
    "g": 102,
    "b": 18
  },
  "hsl": {
    "h": 78.571,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.47272,
    "c": 0.11107,
    "h": 126
  },
  "luminance": 0.11083
}

Semantic roles & 50–950 ramp

primary
#4C6612
secondary
#56369E
accent
#3BED72
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0D04
muted
#7C7D79

Preview Lab

Preview with #4C6612

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

Preview Lab → · Contrast checker → · Palette generator →

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