#4D7816#4D7816

#4D7816 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.2% C 0.132 H 131.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#4D7816
RGBrgb(77, 120, 22)
HSLhsl(86, 69%, 28%)
HSVhsv(86, 82%, 47%)
CMYKcmyk(35.8%, 0%, 81.7%, 52.9%)
CIE-LABlab(45.73, -30.64, 45.07)
CIE-LCHlch(45.73, 54.50, 124.21°)
OKLaboklab(52.19% -0.087 0.0995)
OKLCHoklch(52.19% 0.132 131.2)
XYZxyz(9.9218, 15.0683, 3.1446)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7816 #411678
analogous
#787216 #4D7816 #1C7816
triadic
#4D7816 #164D78 #78164D
tetradic
#4D7816 #167872 #411678 #78161C
square
#4D7816 #167872 #411678 #78161C
split-complementary
#4D7816 #161C78 #721678
monochromatic
#111A05 #2C440D #4D7816 #6EAC1F #8FD92F

Accessibility & contrast

On white

5.23
#4D7816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#4D7816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7816
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7816#FFFFFF#000000##FFFFFF
##4D78161.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#786B21
Tritanopia (blue-blind)
#4F7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4d7816;
/* rgb */ color: rgb(77, 120, 22);
/* oklch */ color: oklch(52.2% 0.132 131.2);
Tailwind
colors: {
  custom: {
    50: '#839f5c',
    500: '#4d7816',
    950: '#000000',
  },
}
SCSS
$custom: #4d7816;
$custom-light: #839f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7816",
  "rgb": {
    "r": 77,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 86.327,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52185,
    "c": 0.13223,
    "h": 131.2
  },
  "luminance": 0.15069
}

Semantic roles & 50–950 ramp

primary
#4D7816
secondary
#6E3CAD
accent
#3CEC89
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4D7816

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

Preview Lab → · Contrast checker → · Palette generator →

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