#4D7F17#4D7F17

#4D7F17 is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.1% C 0.141 H 132.7°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#4D7F17
RGBrgb(77, 127, 23)
HSLhsl(89, 69%, 29%)
HSVhsv(89, 82%, 50%)
CMYKcmyk(39.4%, 0%, 81.9%, 50.2%)
CIE-LABlab(48.03, -33.78, 46.88)
CIE-LCHlch(48.03, 57.78, 125.77°)
OKLaboklab(54.07% -0.0954 0.1035)
OKLCHoklch(54.07% 0.141 132.7)
XYZxyz(10.8045, 16.8179, 3.4873)
Luminance0.1682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7F17 #49177F
analogous
#7F7D17 #4D7F17 #197F17
triadic
#4D7F17 #174D7F #7F174D
tetradic
#4D7F17 #177F7D #49177F #7F1719
square
#4D7F17 #177F7D #49177F #7F1719
split-complementary
#4D7F17 #17197F #7D177F
monochromatic
#101A05 #2E4B0E #4D7F17 #6CB320 #8BDB36

Accessibility & contrast

On white

4.81
#4D7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#4D7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7F17
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7F17#FFFFFF#000000##FFFFFF
##4D7F171.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857400
Deuteranopia (green-blind)
#7E7123
Tritanopia (blue-blind)
#4E7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4d7f17;
/* rgb */ color: rgb(77, 127, 23);
/* oklch */ color: oklch(54.1% 0.141 132.7);
Tailwind
colors: {
  custom: {
    50: '#84a45e',
    500: '#4d7f17',
    950: '#000000',
  },
}
SCSS
$custom: #4d7f17;
$custom-light: #84a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7f17",
  "rgb": {
    "r": 77,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 88.846,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54067,
    "c": 0.1408,
    "h": 132.7
  },
  "luminance": 0.16818
}

Semantic roles & 50–950 ramp

primary
#4D7F17
secondary
#773EB4
accent
#3CEC91
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4D7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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