#4D7B22#4D7B22

#4D7B22 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.1% C 0.129 H 132.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#4D7B22
RGBrgb(77, 123, 34)
HSLhsl(91, 57%, 31%)
HSVhsv(91, 72%, 48%)
CMYKcmyk(37.4%, 0%, 72.4%, 51.8%)
CIE-LABlab(46.79, -31.25, 41.64)
CIE-LCHlch(46.79, 52.06, 126.89°)
OKLaboklab(53.08% -0.0877 0.0943)
OKLCHoklch(53.08% 0.129 132.9)
XYZxyz(10.4321, 15.8587, 4.0244)
Luminance0.1586 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7B22 #50227B
analogous
#797B22 #4D7B22 #227B23
triadic
#4D7B22 #224D7B #7B224D
tetradic
#4D7B22 #22797B #50227B #7B2322
square
#4D7B22 #22797B #50227B #7B2322
split-complementary
#4D7B22 #23227B #7B2279
monochromatic
#111B07 #2F4B15 #4D7B22 #6BAB2F #89CD4A

Accessibility & contrast

On white

5.03
#4D7B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#4D7B22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7B22
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7B22#FFFFFF#000000##FFFFFF
##4D7B221.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807114
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#4D7669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4d7b22;
/* rgb */ color: rgb(77, 123, 34);
/* oklch */ color: oklch(53.1% 0.129 132.9);
Tailwind
colors: {
  custom: {
    50: '#83a163',
    500: '#4d7b22',
    950: '#000000',
  },
}
SCSS
$custom: #4d7b22;
$custom-light: #83a163;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7b22",
  "rgb": {
    "r": 77,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 91.011,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53075,
    "c": 0.12879,
    "h": 132.9
  },
  "luminance": 0.15859
}

Semantic roles & 50–950 ramp

primary
#4D7B22
secondary
#7E4BAE
accent
#48E096
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F05
muted
#7C7E7A

Preview Lab

Preview with #4D7B22

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

Preview Lab → · Contrast checker → · Palette generator →

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