#4C6A12#4C6A12

#4C6A12 is a mid, moderate yellow-green. Relative luminance 0.119; OKLCH L 48.3% C 0.116 H 127.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#4C6A12
RGBrgb(76, 106, 18)
HSLhsl(80, 71%, 24%)
HSVhsv(80, 83%, 42%)
CMYKcmyk(28.3%, 0%, 83%, 58.4%)
CIE-LABlab(41.04, -24.53, 42.01)
CIE-LCHlch(41.04, 48.65, 120.28°)
OKLaboklab(48.34% -0.0707 0.0925)
OKLCHoklch(48.34% 0.116 127.4)
XYZxyz(8.2437, 11.8881, 2.4324)
Luminance0.1189 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6A12 #30126A
analogous
#6A5C12 #4C6A12 #206A12
triadic
#4C6A12 #124C6A #6A124C
tetradic
#4C6A12 #126A5C #30126A #6A1220
square
#4C6A12 #126A5C #30126A #6A1220
split-complementary
#4C6A12 #12206A #5C126A
monochromatic
#131A04 #263609 #4C6A12 #729E1B #97D324

Accessibility & contrast

On white

6.22
#4C6A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4C6A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C6A12
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6A12#FFFFFF#000000##FFFFFF
##4C6A121.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706200
Deuteranopia (green-blind)
#6C601B
Tritanopia (blue-blind)
#4F655A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4c6a12;
/* rgb */ color: rgb(76, 106, 18);
/* oklch */ color: oklch(48.3% 0.116 127.4);
Tailwind
colors: {
  custom: {
    50: '#819459',
    500: '#4c6a12',
    950: '#000000',
  },
}
SCSS
$custom: #4c6a12;
$custom-light: #819459;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6a12",
  "rgb": {
    "r": 76,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 80.455,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.48342,
    "c": 0.1164,
    "h": 127.4
  },
  "luminance": 0.11888
}

Semantic roles & 50–950 ramp

primary
#4C6A12
secondary
#5B36A2
accent
#3AEE77
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4C6A12

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

Preview Lab → · Contrast checker → · Palette generator →

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