#4D7D21#4D7D21

#4D7D21 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.6% C 0.132 H 133.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#4D7D21
RGBrgb(77, 125, 33)
HSLhsl(91, 58%, 31%)
HSVhsv(91, 74%, 49%)
CMYKcmyk(38.4%, 0%, 73.6%, 51%)
CIE-LABlab(47.44, -32.24, 42.70)
CIE-LCHlch(47.44, 53.51, 127.05°)
OKLaboklab(53.6% -0.0905 0.0964)
OKLCHoklch(53.6% 0.132 133.2)
XYZxyz(10.6685, 16.3543, 4.0331)
Luminance0.1636 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7D21 #51217D
analogous
#7B7D21 #4D7D21 #217D23
triadic
#4D7D21 #214D7D #7D214D
tetradic
#4D7D21 #217B7D #51217D #7D2321
square
#4D7D21 #217B7D #51217D #7D2321
split-complementary
#4D7D21 #23217D #7D217B
monochromatic
#111C07 #2F4D14 #4D7D21 #6BAD2E #89CF49

Accessibility & contrast

On white

4.92
#4D7D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#4D7D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7D21
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7D21#FFFFFF#000000##FFFFFF
##4D7D211.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827312
Deuteranopia (green-blind)
#7C6F2A
Tritanopia (blue-blind)
#4D786B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4d7d21;
/* rgb */ color: rgb(77, 125, 33);
/* oklch */ color: oklch(53.6% 0.132 133.2);
Tailwind
colors: {
  custom: {
    50: '#83a362',
    500: '#4d7d21',
    950: '#000000',
  },
}
SCSS
$custom: #4d7d21;
$custom-light: #83a362;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7d21",
  "rgb": {
    "r": 77,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 91.304,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53602,
    "c": 0.13222,
    "h": 133.2
  },
  "luminance": 0.16355
}

Semantic roles & 50–950 ramp

primary
#4D7D21
secondary
#7F4AB0
accent
#46E197
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4D7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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