#4D8D22#4D8D22

#4D8D22 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 57.9% C 0.153 H 135.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#4D8D22
RGBrgb(77, 141, 34)
HSLhsl(96, 61%, 34%)
HSVhsv(96, 76%, 55%)
CMYKcmyk(45.4%, 0%, 75.9%, 44.7%)
CIE-LABlab(52.67, -39.20, 47.55)
CIE-LCHlch(52.67, 61.62, 129.50°)
OKLaboklab(57.89% -0.1093 0.1067)
OKLCHoklch(57.89% 0.153 135.7)
XYZxyz(12.8739, 20.7423, 4.8384)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8D22 #62228D
analogous
#838D22 #4D8D22 #228D2D
triadic
#4D8D22 #224D8D #8D224D
tetradic
#4D8D22 #22838D #62228D #8D2D22
square
#4D8D22 #22838D #62228D #8D2D22
split-complementary
#4D8D22 #2D228D #8D2283
monochromatic
#172A0A #325C16 #4D8D22 #68BE2E #88D654

Accessibility & contrast

On white

4.08
#4D8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#4D8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D8D22
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D8D22#FFFFFF#000000##000000
##4D8D221.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810C
Deuteranopia (green-blind)
#8A7C2D
Tritanopia (blue-blind)
#4B8878
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4d8d22;
/* rgb */ color: rgb(77, 141, 34);
/* oklch */ color: oklch(57.9% 0.153 135.7);
Tailwind
colors: {
  custom: {
    50: '#85af65',
    500: '#4d8d22',
    950: '#000000',
  },
}
SCSS
$custom: #4d8d22;
$custom-light: #85af65;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8d22",
  "rgb": {
    "r": 77,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 95.888,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57886,
    "c": 0.1527,
    "h": 135.7
  },
  "luminance": 0.20743
}

Semantic roles & 50–950 ramp

primary
#4D8D22
secondary
#9051B9
accent
#44E4A4
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4D8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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