#4D7B17#4D7B17

#4D7B17 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 53.0% C 0.136 H 131.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#4D7B17
RGBrgb(77, 123, 23)
HSLhsl(88, 68%, 29%)
HSVhsv(88, 81%, 48%)
CMYKcmyk(37.4%, 0%, 81.3%, 51.8%)
CIE-LABlab(46.72, -31.97, 45.66)
CIE-LCHlch(46.72, 55.74, 125.00°)
OKLaboklab(53% -0.0906 0.101)
OKLCHoklch(53% 0.136 131.9)
XYZxyz(10.2981, 15.8051, 3.3185)
Luminance0.1581 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7B17 #45177B
analogous
#7B7717 #4D7B17 #1B7B17
triadic
#4D7B17 #174D7B #7B174D
tetradic
#4D7B17 #177B77 #45177B #7B171B
square
#4D7B17 #177B77 #45177B #7B171B
split-complementary
#4D7B17 #171B7B #77177B
monochromatic
#101A05 #2D470D #4D7B17 #6DAF21 #8DD933

Accessibility & contrast

On white

5.05
#4D7B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#4D7B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7B17
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7B17#FFFFFF#000000##FFFFFF
##4D7B171.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7A6D22
Tritanopia (blue-blind)
#4E7669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4d7b17;
/* rgb */ color: rgb(77, 123, 23);
/* oklch */ color: oklch(53.0% 0.136 131.9);
Tailwind
colors: {
  custom: {
    50: '#83a15d',
    500: '#4d7b17',
    950: '#000000',
  },
}
SCSS
$custom: #4d7b17;
$custom-light: #83a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7b17",
  "rgb": {
    "r": 77,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 87.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52995,
    "c": 0.13562,
    "h": 131.9
  },
  "luminance": 0.15806
}

Semantic roles & 50–950 ramp

primary
#4D7B17
secondary
#723EB0
accent
#3CEB8D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4D7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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