#4D7018#4D7018

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

Color values

HEX#4D7018
RGBrgb(77, 112, 24)
HSLhsl(84, 65%, 27%)
HSVhsv(84, 79%, 44%)
CMYKcmyk(31.2%, 0%, 78.6%, 56.1%)
CIE-LABlab(43.11, -26.72, 41.89)
CIE-LCHlch(43.11, 49.69, 122.53°)
OKLaboklab(50.06% -0.0763 0.0932)
OKLCHoklch(50.06% 0.12 129.3)
XYZxyz(9.0196, 13.2318, 2.9428)
Luminance0.1323 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7018 #3B1870
analogous
#706718 #4D7018 #217018
triadic
#4D7018 #184D70 #70184D
tetradic
#4D7018 #187067 #3B1870 #701821
square
#4D7018 #187067 #3B1870 #701821
split-complementary
#4D7018 #182170 #671870
monochromatic
#111905 #2A3E0D #4D7018 #70A223 #92D330

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D7018#FFFFFF#000000##FFFFFF
##4D70181.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)
#766705
Deuteranopia (green-blind)
#716521
Tritanopia (blue-blind)
#4F6B5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4d7018;
/* rgb */ color: rgb(77, 112, 24);
/* oklch */ color: oklch(50.1% 0.120 129.3);
Tailwind
colors: {
  custom: {
    50: '#82995c',
    500: '#4d7018',
    950: '#000000',
  },
}
SCSS
$custom: #4d7018;
$custom-light: #82995c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7018",
  "rgb": {
    "r": 77,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 83.864,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.50055,
    "c": 0.12045,
    "h": 129.3
  },
  "luminance": 0.13232
}

Semantic roles & 50–950 ramp

primary
#4D7018
secondary
#673EA5
accent
#40E883
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4D7018

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

Preview Lab → · Contrast checker → · Palette generator →

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