#4D9D21#4D9D21

#4D9D21 is a light, vivid yellow-green. Relative luminance 0.258; OKLCH L 62.1% C 0.173 H 137.2°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#4D9D21
RGBrgb(77, 157, 33)
HSLhsl(99, 65%, 37%)
HSVhsv(99, 79%, 62%)
CMYKcmyk(51%, 0%, 79%, 38.4%)
CIE-LABlab(57.85, -45.77, 52.91)
CIE-LCHlch(57.85, 69.96, 130.86°)
OKLaboklab(62.14% -0.1271 0.1177)
OKLCHoklch(62.14% 0.173 137.2)
XYZxyz(15.3916, 25.8004, 5.6075)
Luminance0.2580 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D9D21 #71219D
analogous
#8B9D21 #4D9D21 #219D33
triadic
#4D9D21 #214D9D #9D214D
tetradic
#4D9D21 #218B9D #71219D #9D3321
square
#4D9D21 #218B9D #71219D #9D3321
split-complementary
#4D9D21 #33219D #9D218B
monochromatic
#1B380C #346A16 #4D9D21 #66D02C #89DD5C

Accessibility & contrast

On white

3.41
#4D9D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#4D9D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D9D21
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D9D21#FFFFFF#000000##000000
##4D9D211.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F00
Deuteranopia (green-blind)
#98892F
Tritanopia (blue-blind)
#489786
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #4d9d21;
/* rgb */ color: rgb(77, 157, 33);
/* oklch */ color: oklch(62.1% 0.173 137.2);
Tailwind
colors: {
  custom: {
    50: '#87bb67',
    500: '#4d9d21',
    950: '#000000',
  },
}
SCSS
$custom: #4d9d21;
$custom-light: #87bb67;
$custom-dark: #000000;
JSON
{
  "hex": "#4d9d21",
  "rgb": {
    "r": 77,
    "g": 157,
    "b": 33
  },
  "hsl": {
    "h": 98.71,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62142,
    "c": 0.17321,
    "h": 137.2
  },
  "luminance": 0.25802
}

Semantic roles & 50–950 ramp

primary
#4D9D21
secondary
#9C59C1
accent
#40E8AC
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #4D9D21

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

Preview Lab → · Contrast checker → · Palette generator →

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