#4D6012#4D6012

#4D6012 is a mid, moderate yellow-green. Relative luminance 0.100; OKLCH L 45.8% C 0.103 H 122.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#4D6012
RGBrgb(77, 96, 18)
HSLhsl(75, 68%, 22%)
HSVhsv(75, 81%, 38%)
CMYKcmyk(19.8%, 0%, 81.3%, 62.4%)
CIE-LABlab(37.82, -18.93, 39.05)
CIE-LCHlch(37.82, 43.40, 115.87°)
OKLaboklab(45.75% -0.0555 0.0862)
OKLCHoklch(45.75% 0.103 122.8)
XYZxyz(7.3527, 9.9872, 2.1125)
Luminance0.0999 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D6012 #251260
analogous
#604C12 #4D6012 #266012
triadic
#4D6012 #124D60 #60124D
tetradic
#4D6012 #12604C #251260 #601226
square
#4D6012 #12604C #251260 #601226
split-complementary
#4D6012 #122660 #4C1260
monochromatic
#151A05 #242C08 #4D6012 #76941C #A0C725

Accessibility & contrast

On white

7.01
#4D6012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4D6012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D6012
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D6012#FFFFFF#000000##FFFFFF
##4D60121.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665A01
Deuteranopia (green-blind)
#645919
Tritanopia (blue-blind)
#515B51
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4d6012;
/* rgb */ color: rgb(77, 96, 18);
/* oklch */ color: oklch(45.8% 0.103 122.8);
Tailwind
colors: {
  custom: {
    50: '#828d57',
    500: '#4d6012',
    950: '#000000',
  },
}
SCSS
$custom: #4d6012;
$custom-light: #828d57;
$custom-dark: #000000;
JSON
{
  "hex": "#4d6012",
  "rgb": {
    "r": 77,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 74.615,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.45752,
    "c": 0.10252,
    "h": 122.8
  },
  "luminance": 0.09987
}

Semantic roles & 50–950 ramp

primary
#4D6012
secondary
#4E3698
accent
#3DEB67
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #4D6012

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

Preview Lab → · Contrast checker → · Palette generator →

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