#4D8817#4D8817

#4D8817 is a mid, vivid yellow-green. Relative luminance 0.192; OKLCH L 56.5% C 0.152 H 134.2°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#4D8817
RGBrgb(77, 136, 23)
HSLhsl(91, 71%, 31%)
HSVhsv(91, 83%, 53%)
CMYKcmyk(43.4%, 0%, 83.1%, 46.7%)
CIE-LABlab(50.98, -37.72, 49.59)
CIE-LCHlch(50.98, 62.31, 127.26°)
OKLaboklab(56.48% -0.106 0.1092)
OKLCHoklch(56.48% 0.152 134.2)
XYZxyz(12.0192, 19.2473, 3.8922)
Luminance0.1925 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8817 #521788
analogous
#858817 #4D8817 #178819
triadic
#4D8817 #174D88 #88174D
tetradic
#4D8817 #178588 #521788 #881917
square
#4D8817 #178588 #521788 #881917
split-complementary
#4D8817 #191788 #881785
monochromatic
#121F05 #2F540E #4D8817 #6BBC20 #89DE3B

Accessibility & contrast

On white

4.33
#4D8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#4D8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D8817
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D8817#FFFFFF#000000##000000
##4D88171.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7C00
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#4C8274
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4d8817;
/* rgb */ color: rgb(77, 136, 23);
/* oklch */ color: oklch(56.5% 0.152 134.2);
Tailwind
colors: {
  custom: {
    50: '#85ab5f',
    500: '#4d8817',
    950: '#000000',
  },
}
SCSS
$custom: #4d8817;
$custom-light: #85ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8817",
  "rgb": {
    "r": 77,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 91.327,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5648,
    "c": 0.15222,
    "h": 134.2
  },
  "luminance": 0.19248
}

Semantic roles & 50–950 ramp

primary
#4D8817
secondary
#803FBC
accent
#3AEE98
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #4D8817

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

Preview Lab → · Contrast checker → · Palette generator →

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