#4C6912#4C6912

#4C6912 is a mid, moderate yellow-green. Relative luminance 0.117; OKLCH L 48.1% C 0.115 H 127.1°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#4C6912
RGBrgb(76, 105, 18)
HSLhsl(80, 71%, 24%)
HSVhsv(80, 83%, 41%)
CMYKcmyk(27.6%, 0%, 82.9%, 58.8%)
CIE-LABlab(40.71, -24.03, 41.71)
CIE-LCHlch(40.71, 48.13, 119.94°)
OKLaboklab(48.07% -0.0694 0.0918)
OKLCHoklch(48.07% 0.115 127.1)
XYZxyz(8.1413, 11.6832, 2.3983)
Luminance0.1168 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6912 #2F1269
analogous
#695B12 #4C6912 #216912
triadic
#4C6912 #124C69 #69124C
tetradic
#4C6912 #12695B #2F1269 #691221
square
#4C6912 #12695B #2F1269 #691221
split-complementary
#4C6912 #122169 #5B1269
monochromatic
#131A04 #263509 #4C6912 #729D1B #98D124

Accessibility & contrast

On white

6.29
#4C6912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4C6912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C6912
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6912#FFFFFF#000000##FFFFFF
##4C69121.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6100
Deuteranopia (green-blind)
#6B5F1B
Tritanopia (blue-blind)
#4F6459
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4c6912;
/* rgb */ color: rgb(76, 105, 18);
/* oklch */ color: oklch(48.1% 0.115 127.1);
Tailwind
colors: {
  custom: {
    50: '#819458',
    500: '#4c6912',
    950: '#000000',
  },
}
SCSS
$custom: #4c6912;
$custom-light: #819458;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6912",
  "rgb": {
    "r": 76,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 80,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.48074,
    "c": 0.11507,
    "h": 127.1
  },
  "luminance": 0.11683
}

Semantic roles & 50–950 ramp

primary
#4C6912
secondary
#5A36A1
accent
#3AED76
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4C6912

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

Preview Lab → · Contrast checker → · Palette generator →

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