#4C6712#4C6712

#4C6712 is a mid, moderate yellow-green. Relative luminance 0.113; OKLCH L 47.5% C 0.112 H 126.4°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#4C6712
RGBrgb(76, 103, 18)
HSLhsl(79, 70%, 24%)
HSVhsv(79, 83%, 40%)
CMYKcmyk(26.2%, 0%, 82.5%, 59.6%)
CIE-LABlab(40.05, -23.02, 41.10)
CIE-LCHlch(40.05, 47.11, 119.25°)
OKLaboklab(47.54% -0.0666 0.0905)
OKLCHoklch(47.54% 0.112 126.4)
XYZxyz(7.9400, 11.2805, 2.3312)
Luminance0.1128 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6712 #2D1267
analogous
#675712 #4C6712 #216712
triadic
#4C6712 #124C67 #67124C
tetradic
#4C6712 #126757 #2D1267 #671221
square
#4C6712 #126757 #2D1267 #671221
split-complementary
#4C6712 #122167 #571267
monochromatic
#131A05 #263309 #4C6712 #729B1B #99CF24

Accessibility & contrast

On white

6.45
#4C6712 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#4C6712 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C6712
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6712#FFFFFF#000000##FFFFFF
##4C67121.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D5F00
Deuteranopia (green-blind)
#695E1B
Tritanopia (blue-blind)
#506257
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4c6712;
/* rgb */ color: rgb(76, 103, 18);
/* oklch */ color: oklch(47.5% 0.112 126.4);
Tailwind
colors: {
  custom: {
    50: '#819258',
    500: '#4c6712',
    950: '#000000',
  },
}
SCSS
$custom: #4c6712;
$custom-light: #819258;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6712",
  "rgb": {
    "r": 76,
    "g": 103,
    "b": 18
  },
  "hsl": {
    "h": 79.059,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.47539,
    "c": 0.11241,
    "h": 126.4
  },
  "luminance": 0.11281
}

Semantic roles & 50–950 ramp

primary
#4C6712
secondary
#57369F
accent
#3BED73
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4C6712

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

Preview Lab → · Contrast checker → · Palette generator →

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