#4D7217#4D7217

#4D7217 is a mid, vivid yellow-green. Relative luminance 0.137; OKLCH L 50.6% C 0.124 H 129.8°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#4D7217
RGBrgb(77, 114, 23)
HSLhsl(84, 66%, 27%)
HSVhsv(84, 80%, 45%)
CMYKcmyk(32.5%, 0%, 79.8%, 55.3%)
CIE-LABlab(43.76, -27.75, 42.88)
CIE-LCHlch(43.76, 51.07, 122.91°)
OKLaboklab(50.58% -0.0791 0.0951)
OKLCHoklch(50.58% 0.124 129.8)
XYZxyz(9.2325, 13.6740, 2.9634)
Luminance0.1367 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7217 #3C1772
analogous
#726A17 #4D7217 #1F7217
triadic
#4D7217 #174D72 #72174D
tetradic
#4D7217 #17726A #3C1772 #72171F
square
#4D7217 #17726A #3C1772 #72171F
split-complementary
#4D7217 #171F72 #6A1772
monochromatic
#111905 #2B3F0D #4D7217 #6FA521 #91D52E

Accessibility & contrast

On white

5.62
#4D7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#4D7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7217
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7217#FFFFFF#000000##FFFFFF
##4D72171.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786902
Deuteranopia (green-blind)
#736720
Tritanopia (blue-blind)
#4F6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4d7217;
/* rgb */ color: rgb(77, 114, 23);
/* oklch */ color: oklch(50.6% 0.124 129.8);
Tailwind
colors: {
  custom: {
    50: '#829b5c',
    500: '#4d7217',
    950: '#000000',
  },
}
SCSS
$custom: #4d7217;
$custom-light: #829b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7217",
  "rgb": {
    "r": 77,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 84.396,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.50584,
    "c": 0.12374,
    "h": 129.8
  },
  "luminance": 0.13674
}

Semantic roles & 50–950 ramp

primary
#4D7217
secondary
#683DA8
accent
#3EE984
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4D7217

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

Preview Lab → · Contrast checker → · Palette generator →

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