#4C6812#4C6812

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

Color values

HEX#4C6812
RGBrgb(76, 104, 18)
HSLhsl(80, 70%, 24%)
HSVhsv(80, 83%, 41%)
CMYKcmyk(26.9%, 0%, 82.7%, 59.2%)
CIE-LABlab(40.38, -23.52, 41.41)
CIE-LCHlch(40.38, 47.62, 119.60°)
OKLaboklab(47.81% -0.068 0.0912)
OKLCHoklch(47.81% 0.114 126.7)
XYZxyz(8.0400, 11.4807, 2.3645)
Luminance0.1148 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6812 #2E1268
analogous
#685912 #4C6812 #216812
triadic
#4C6812 #124C68 #68124C
tetradic
#4C6812 #126859 #2E1268 #681221
square
#4C6812 #126859 #2E1268 #681221
split-complementary
#4C6812 #122168 #591268
monochromatic
#131A05 #263409 #4C6812 #729C1B #98D024

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C6812#FFFFFF#000000##FFFFFF
##4C68121.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)
#6E6000
Deuteranopia (green-blind)
#6A5F1B
Tritanopia (blue-blind)
#4F6358
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4c6812;
/* rgb */ color: rgb(76, 104, 18);
/* oklch */ color: oklch(47.8% 0.114 126.7);
Tailwind
colors: {
  custom: {
    50: '#819358',
    500: '#4c6812',
    950: '#000000',
  },
}
SCSS
$custom: #4c6812;
$custom-light: #819358;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6812",
  "rgb": {
    "r": 76,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 79.535,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.47807,
    "c": 0.11374,
    "h": 126.7
  },
  "luminance": 0.11481
}

Semantic roles & 50–950 ramp

primary
#4C6812
secondary
#5936A0
accent
#3BED75
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4C6812

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

Preview Lab → · Contrast checker → · Palette generator →

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