#4D6912#4D6912

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

Color values

HEX#4D6912
RGBrgb(77, 105, 18)
HSLhsl(79, 71%, 24%)
HSVhsv(79, 83%, 41%)
CMYKcmyk(26.7%, 0%, 82.9%, 58.8%)
CIE-LABlab(40.77, -23.59, 41.79)
CIE-LCHlch(40.77, 47.99, 119.45°)
OKLaboklab(48.15% -0.0683 0.092)
OKLCHoklch(48.15% 0.115 126.6)
XYZxyz(8.2214, 11.7245, 2.4021)
Luminance0.1172 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D6912 #2E1269
analogous
#695A12 #4D6912 #226912
triadic
#4D6912 #124D69 #69124D
tetradic
#4D6912 #12695A #2E1269 #691222
square
#4D6912 #12695A #2E1269 #691222
split-complementary
#4D6912 #122269 #5A1269
monochromatic
#131A04 #273509 #4D6912 #739D1B #9AD124

Accessibility & contrast

On white

6.28
#4D6912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4D6912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D6912
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D6912#FFFFFF#000000##FFFFFF
##4D69121.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6100
Deuteranopia (green-blind)
#6B601B
Tritanopia (blue-blind)
#516459
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4d6912;
/* rgb */ color: rgb(77, 105, 18);
/* oklch */ color: oklch(48.1% 0.115 126.6);
Tailwind
colors: {
  custom: {
    50: '#829458',
    500: '#4d6912',
    950: '#000000',
  },
}
SCSS
$custom: #4d6912;
$custom-light: #829458;
$custom-dark: #000000;
JSON
{
  "hex": "#4d6912",
  "rgb": {
    "r": 77,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 79.31,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.48146,
    "c": 0.11453,
    "h": 126.6
  },
  "luminance": 0.11725
}

Semantic roles & 50–950 ramp

primary
#4D6912
secondary
#5836A1
accent
#3AED74
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4D6912

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

Preview Lab → · Contrast checker → · Palette generator →

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