#4D7512#4D7512

#4D7512 is a mid, vivid yellow-green. Relative luminance 0.143; OKLCH L 51.4% C 0.130 H 130.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#4D7512
RGBrgb(77, 117, 18)
HSLhsl(84, 73%, 26%)
HSVhsv(84, 85%, 46%)
CMYKcmyk(34.2%, 0%, 84.6%, 54.1%)
CIE-LABlab(44.72, -29.44, 45.39)
CIE-LCHlch(44.72, 54.10, 122.97°)
OKLaboklab(51.36% -0.0841 0.0996)
OKLCHoklch(51.36% 0.13 130.2)
XYZxyz(9.5310, 14.3437, 2.8386)
Luminance0.1434 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7512 #3A1275
analogous
#756C12 #4D7512 #1C7512
triadic
#4D7512 #124D75 #75124D
tetradic
#4D7512 #12756C #3A1275 #75121C
square
#4D7512 #12756C #3A1275 #75121C
split-complementary
#4D7512 #121C75 #6C1275
monochromatic
#111B04 #2A400A #4D7512 #70AA1A #92DD24

Accessibility & contrast

On white

5.43
#4D7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#4D7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7512
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7512#FFFFFF#000000##FFFFFF
##4D75121.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#75691D
Tritanopia (blue-blind)
#4F7063
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4d7512;
/* rgb */ color: rgb(77, 117, 18);
/* oklch */ color: oklch(51.4% 0.130 130.2);
Tailwind
colors: {
  custom: {
    50: '#839d5a',
    500: '#4d7512',
    950: '#000000',
  },
}
SCSS
$custom: #4d7512;
$custom-light: #839d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7512",
  "rgb": {
    "r": 77,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 84.242,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51358,
    "c": 0.13031,
    "h": 130.2
  },
  "luminance": 0.14344
}

Semantic roles & 50–950 ramp

primary
#4D7512
secondary
#6637AC
accent
#38F082
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4D7512

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

Preview Lab → · Contrast checker → · Palette generator →

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