#4D7F18#4D7F18

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

Color values

HEX#4D7F18
RGBrgb(77, 127, 24)
HSLhsl(89, 68%, 30%)
HSVhsv(89, 81%, 50%)
CMYKcmyk(39.4%, 0%, 81.1%, 50.2%)
CIE-LABlab(48.03, -33.73, 46.57)
CIE-LCHlch(48.03, 57.50, 125.92°)
OKLaboklab(54.07% -0.0952 0.103)
OKLCHoklch(54.07% 0.14 132.7)
XYZxyz(10.8147, 16.8220, 3.5411)
Luminance0.1682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7F18 #4A187F
analogous
#7F7E18 #4D7F18 #1A7F18
triadic
#4D7F18 #184D7F #7F184D
tetradic
#4D7F18 #187F7E #4A187F #7F181A
square
#4D7F18 #187F7E #4A187F #7F181A
split-complementary
#4D7F18 #181A7F #7E187F
monochromatic
#101A05 #2E4C0E #4D7F18 #6CB222 #8BD938

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D7F18#FFFFFF#000000##FFFFFF
##4D7F181.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)
#857500
Deuteranopia (green-blind)
#7E7123
Tritanopia (blue-blind)
#4E7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4d7f18;
/* rgb */ color: rgb(77, 127, 24);
/* oklch */ color: oklch(54.1% 0.140 132.7);
Tailwind
colors: {
  custom: {
    50: '#84a45e',
    500: '#4d7f18',
    950: '#000000',
  },
}
SCSS
$custom: #4d7f18;
$custom-light: #84a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7f18",
  "rgb": {
    "r": 77,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 89.126,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54073,
    "c": 0.14029,
    "h": 132.7
  },
  "luminance": 0.16822
}

Semantic roles & 50–950 ramp

primary
#4D7F18
secondary
#783FB3
accent
#3DEB91
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4D7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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