#4D7A17#4D7A17

#4D7A17 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.7% C 0.134 H 131.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#4D7A17
RGBrgb(77, 122, 23)
HSLhsl(87, 68%, 28%)
HSVhsv(87, 81%, 48%)
CMYKcmyk(36.9%, 0%, 81.1%, 52.2%)
CIE-LABlab(46.39, -31.51, 45.35)
CIE-LCHlch(46.39, 55.23, 124.79°)
OKLaboklab(52.73% -0.0893 0.1003)
OKLCHoklch(52.73% 0.134 131.7)
XYZxyz(10.1747, 15.5583, 3.2774)
Luminance0.1556 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7A17 #44177A
analogous
#7A7517 #4D7A17 #1B7A17
triadic
#4D7A17 #174D7A #7A174D
tetradic
#4D7A17 #177A75 #44177A #7A171B
square
#4D7A17 #177A75 #44177A #7A171B
split-complementary
#4D7A17 #171B7A #75177A
monochromatic
#101A05 #2C470D #4D7A17 #6DAD21 #8DD933

Accessibility & contrast

On white

5.11
#4D7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#4D7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7A17
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7A17#FFFFFF#000000##FFFFFF
##4D7A171.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#796D22
Tritanopia (blue-blind)
#4E7568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4d7a17;
/* rgb */ color: rgb(77, 122, 23);
/* oklch */ color: oklch(52.7% 0.134 131.7);
Tailwind
colors: {
  custom: {
    50: '#83a15d',
    500: '#4d7a17',
    950: '#000000',
  },
}
SCSS
$custom: #4d7a17;
$custom-light: #83a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7a17",
  "rgb": {
    "r": 77,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 87.273,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52727,
    "c": 0.13431,
    "h": 131.7
  },
  "luminance": 0.15559
}

Semantic roles & 50–950 ramp

primary
#4D7A17
secondary
#713EAF
accent
#3DEB8C
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4D7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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