#4D7817#4D7817

#4D7817 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#4D7817
RGBrgb(77, 120, 23)
HSLhsl(87, 68%, 28%)
HSVhsv(87, 81%, 47%)
CMYKcmyk(35.8%, 0%, 80.8%, 52.9%)
CIE-LABlab(45.73, -30.59, 44.74)
CIE-LCHlch(45.73, 54.20, 124.36°)
OKLaboklab(52.19% -0.0868 0.099)
OKLCHoklch(52.19% 0.132 131.2)
XYZxyz(9.9316, 15.0722, 3.1964)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7817 #421778
analogous
#787217 #4D7817 #1C7817
triadic
#4D7817 #174D78 #78174D
tetradic
#4D7817 #177872 #421778 #78171C
square
#4D7817 #177872 #421778 #78171C
split-complementary
#4D7817 #171C78 #721778
monochromatic
#101A05 #2C450D #4D7817 #6EAB21 #8ED832

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D7817#FFFFFF#000000##FFFFFF
##4D78171.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: #4d7817;
/* rgb */ color: rgb(77, 120, 23);
/* oklch */ color: oklch(52.2% 0.132 131.2);
Tailwind
colors: {
  custom: {
    50: '#839f5d',
    500: '#4d7817',
    950: '#000000',
  },
}
SCSS
$custom: #4d7817;
$custom-light: #839f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7817",
  "rgb": {
    "r": 77,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 86.598,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52191,
    "c": 0.13169,
    "h": 131.2
  },
  "luminance": 0.15073
}

Semantic roles & 50–950 ramp

primary
#4D7817
secondary
#6F3EAD
accent
#3DEB8A
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4D7817

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

Preview Lab → · Contrast checker → · Palette generator →

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