#4D7917#4D7917

#4D7917 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.5% C 0.133 H 131.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#4D7917
RGBrgb(77, 121, 23)
HSLhsl(87, 68%, 28%)
HSVhsv(87, 81%, 47%)
CMYKcmyk(36.4%, 0%, 81%, 52.5%)
CIE-LABlab(46.06, -31.05, 45.05)
CIE-LCHlch(46.06, 54.71, 124.58°)
OKLaboklab(52.46% -0.0881 0.0997)
OKLCHoklch(52.46% 0.133 131.5)
XYZxyz(10.0525, 15.3140, 3.2367)
Luminance0.1531 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7917 #431779
analogous
#797417 #4D7917 #1C7917
triadic
#4D7917 #174D79 #79174D
tetradic
#4D7917 #177974 #431779 #79171C
square
#4D7917 #177974 #431779 #79171C
split-complementary
#4D7917 #171C79 #741779
monochromatic
#101A05 #2C460D #4D7917 #6EAC21 #8ED832

Accessibility & contrast

On white

5.17
#4D7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#4D7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7917
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7917#FFFFFF#000000##FFFFFF
##4D79171.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#796C22
Tritanopia (blue-blind)
#4E7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4d7917;
/* rgb */ color: rgb(77, 121, 23);
/* oklch */ color: oklch(52.5% 0.133 131.5);
Tailwind
colors: {
  custom: {
    50: '#83a05d',
    500: '#4d7917',
    950: '#000000',
  },
}
SCSS
$custom: #4d7917;
$custom-light: #83a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7917",
  "rgb": {
    "r": 77,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 86.939,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52459,
    "c": 0.13301,
    "h": 131.5
  },
  "luminance": 0.15314
}

Semantic roles & 50–950 ramp

primary
#4D7917
secondary
#703EAE
accent
#3DEB8B
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4D7917

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

Preview Lab → · Contrast checker → · Palette generator →

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