#4D7017#4D7017

#4D7017 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 50.0% C 0.121 H 129.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#4D7017
RGBrgb(77, 112, 23)
HSLhsl(84, 66%, 26%)
HSVhsv(84, 79%, 44%)
CMYKcmyk(31.2%, 0%, 79.5%, 56.1%)
CIE-LABlab(43.10, -26.78, 42.25)
CIE-LCHlch(43.10, 50.03, 122.37°)
OKLaboklab(50.05% -0.0765 0.0938)
OKLCHoklch(50.05% 0.121 129.2)
XYZxyz(9.0094, 13.2277, 2.8890)
Luminance0.1323 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7017 #3A1770
analogous
#706717 #4D7017 #207017
triadic
#4D7017 #174D70 #70174D
tetradic
#4D7017 #177067 #3A1770 #701720
square
#4D7017 #177067 #3A1770 #701720
split-complementary
#4D7017 #172070 #671770
monochromatic
#111905 #2A3D0D #4D7017 #70A321 #92D42D

Accessibility & contrast

On white

5.76
#4D7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#4D7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7017
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7017#FFFFFF#000000##FFFFFF
##4D70171.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766703
Deuteranopia (green-blind)
#716520
Tritanopia (blue-blind)
#506B5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4d7017;
/* rgb */ color: rgb(77, 112, 23);
/* oklch */ color: oklch(50.0% 0.121 129.2);
Tailwind
colors: {
  custom: {
    50: '#82995c',
    500: '#4d7017',
    950: '#000000',
  },
}
SCSS
$custom: #4d7017;
$custom-light: #82995c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7017",
  "rgb": {
    "r": 77,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 83.596,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.50048,
    "c": 0.12106,
    "h": 129.2
  },
  "luminance": 0.13228
}

Semantic roles & 50–950 ramp

primary
#4D7017
secondary
#663DA6
accent
#3FE982
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4D7017

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

Preview Lab → · Contrast checker → · Palette generator →

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