#4D7E17#4D7E17

#4D7E17 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.8% C 0.140 H 132.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#4D7E17
RGBrgb(77, 126, 23)
HSLhsl(89, 69%, 29%)
HSVhsv(89, 82%, 49%)
CMYKcmyk(38.9%, 0%, 81.7%, 50.6%)
CIE-LABlab(47.70, -33.33, 46.58)
CIE-LCHlch(47.70, 57.28, 125.59°)
OKLaboklab(53.8% -0.0942 0.1029)
OKLCHoklch(53.8% 0.14 132.5)
XYZxyz(10.6759, 16.5609, 3.4445)
Luminance0.1656 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7E17 #48177E
analogous
#7E7C17 #4D7E17 #197E17
triadic
#4D7E17 #174D7E #7E174D
tetradic
#4D7E17 #177E7C #48177E #7E1719
square
#4D7E17 #177E7C #48177E #7E1719
split-complementary
#4D7E17 #17197E #7C177E
monochromatic
#101A05 #2D4A0E #4D7E17 #6DB220 #8CDA35

Accessibility & contrast

On white

4.87
#4D7E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#4D7E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7E17
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7E17#FFFFFF#000000##FFFFFF
##4D7E171.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7D7022
Tritanopia (blue-blind)
#4E796B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4d7e17;
/* rgb */ color: rgb(77, 126, 23);
/* oklch */ color: oklch(53.8% 0.140 132.5);
Tailwind
colors: {
  custom: {
    50: '#84a45e',
    500: '#4d7e17',
    950: '#000000',
  },
}
SCSS
$custom: #4d7e17;
$custom-light: #84a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7e17",
  "rgb": {
    "r": 77,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 88.544,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53799,
    "c": 0.13951,
    "h": 132.5
  },
  "luminance": 0.16561
}

Semantic roles & 50–950 ramp

primary
#4D7E17
secondary
#763EB3
accent
#3CEC90
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4D7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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