#4D6917#4D6917

#4D6917 is a mid, moderate yellow-green. Relative luminance 0.117; OKLCH L 48.2% C 0.112 H 127.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#4D6917
RGBrgb(77, 105, 23)
HSLhsl(80, 64%, 25%)
HSVhsv(80, 78%, 41%)
CMYKcmyk(26.7%, 0%, 78.1%, 58.8%)
CIE-LABlab(40.80, -23.31, 40.04)
CIE-LCHlch(40.80, 46.33, 120.21°)
OKLaboklab(48.18% -0.0671 0.0892)
OKLCHoklch(48.18% 0.112 127)
XYZxyz(8.2668, 11.7426, 2.6415)
Luminance0.1174 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D6917 #331769
analogous
#695C17 #4D6917 #246917
triadic
#4D6917 #174D69 #69174D
tetradic
#4D6917 #17695C #331769 #691724
square
#4D6917 #17695C #331769 #691724
split-complementary
#4D6917 #172469 #5C1769
monochromatic
#121905 #28370C #4D6917 #729B22 #97CD2D

Accessibility & contrast

On white

6.27
#4D6917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4D6917
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D6917#FFFFFF#000000##FFFFFF
##4D69171.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6106
Deuteranopia (green-blind)
#6B601F
Tritanopia (blue-blind)
#506459
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4d6917;
/* rgb */ color: rgb(77, 105, 23);
/* oklch */ color: oklch(48.2% 0.112 127.0);
Tailwind
colors: {
  custom: {
    50: '#82945b',
    500: '#4d6917',
    950: '#000000',
  },
}
SCSS
$custom: #4d6917;
$custom-light: #82945b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d6917",
  "rgb": {
    "r": 77,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 80.488,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.48179,
    "c": 0.11158,
    "h": 127
  },
  "luminance": 0.11743
}

Semantic roles & 50–950 ramp

primary
#4D6917
secondary
#5E3D9F
accent
#41E77A
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4D6917

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

Preview Lab → · Contrast checker → · Palette generator →

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