#4D7F12#4D7F12

#4D7F12 is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.0% C 0.143 H 132.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#4D7F12
RGBrgb(77, 127, 18)
HSLhsl(88, 75%, 28%)
HSVhsv(88, 86%, 50%)
CMYKcmyk(39.4%, 0%, 85.8%, 50.2%)
CIE-LABlab(48.01, -34.02, 48.33)
CIE-LCHlch(48.01, 59.10, 125.14°)
OKLaboklab(54.04% -0.0964 0.1058)
OKLCHoklch(54.04% 0.143 132.3)
XYZxyz(10.7590, 16.7997, 3.2479)
Luminance0.1680 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7F12 #44127F
analogous
#7F7A12 #4D7F12 #167F12
triadic
#4D7F12 #124D7F #7F124D
tetradic
#4D7F12 #127F7A #44127F #7F1216
square
#4D7F12 #127F7A #44127F #7F1216
split-complementary
#4D7F12 #12167F #7A127F
monochromatic
#101B04 #2C490A #4D7F12 #6DB51A #8DE12B

Accessibility & contrast

On white

4.82
#4D7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4D7F12
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7F12#FFFFFF#000000##FFFFFF
##4D7F121.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d7f12;
/* rgb */ color: rgb(77, 127, 18);
/* oklch */ color: oklch(54.0% 0.143 132.3);
Tailwind
colors: {
  custom: {
    50: '#84a45c',
    500: '#4d7f12',
    950: '#000000',
  },
}
SCSS
$custom: #4d7f12;
$custom-light: #84a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7f12",
  "rgb": {
    "r": 77,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 87.523,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54041,
    "c": 0.14312,
    "h": 132.3
  },
  "luminance": 0.168
}

Semantic roles & 50–950 ramp

primary
#4D7F12
secondary
#7138B5
accent
#36F28C
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4D7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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