#4D8A21#4D8A21

#4D8A21 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.1% C 0.149 H 135.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#4D8A21
RGBrgb(77, 138, 33)
HSLhsl(95, 61%, 34%)
HSVhsv(95, 76%, 54%)
CMYKcmyk(44.2%, 0%, 76.1%, 45.9%)
CIE-LABlab(51.68, -37.99, 46.95)
CIE-LCHlch(51.68, 60.39, 128.98°)
OKLaboklab(57.08% -0.1061 0.1052)
OKLCHoklch(57.08% 0.149 135.2)
XYZxyz(12.4233, 19.8638, 4.6180)
Luminance0.1986 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8A21 #5E218A
analogous
#818A21 #4D8A21 #218A29
triadic
#4D8A21 #214D8A #8A214D
tetradic
#4D8A21 #21818A #5E218A #8A2921
square
#4D8A21 #21818A #5E218A #8A2921
split-complementary
#4D8A21 #29218A #8A2181
monochromatic
#162709 #315915 #4D8A21 #69BB2D #88D550

Accessibility & contrast

On white

4.22
#4D8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#4D8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D8A21
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D8A21#FFFFFF#000000##000000
##4D8A211.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0B
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#4B8576
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4d8a21;
/* rgb */ color: rgb(77, 138, 33);
/* oklch */ color: oklch(57.1% 0.149 135.2);
Tailwind
colors: {
  custom: {
    50: '#84ac64',
    500: '#4d8a21',
    950: '#000000',
  },
}
SCSS
$custom: #4d8a21;
$custom-light: #84ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8a21",
  "rgb": {
    "r": 77,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 94.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57077,
    "c": 0.14943,
    "h": 135.2
  },
  "luminance": 0.19865
}

Semantic roles & 50–950 ramp

primary
#4D8A21
secondary
#8C4EB9
accent
#43E5A1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4D8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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