#4D6812#4D6812

#4D6812 is a mid, moderate yellow-green. Relative luminance 0.115; OKLCH L 47.9% C 0.113 H 126.2°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#4D6812
RGBrgb(77, 104, 18)
HSLhsl(79, 70%, 24%)
HSVhsv(79, 83%, 41%)
CMYKcmyk(26%, 0%, 82.7%, 59.2%)
CIE-LABlab(40.45, -23.09, 41.49)
CIE-LCHlch(40.45, 47.48, 119.09°)
OKLaboklab(47.88% -0.0669 0.0913)
OKLCHoklch(47.88% 0.113 126.2)
XYZxyz(8.1201, 11.5219, 2.3683)
Luminance0.1152 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D6812 #2D1268
analogous
#685812 #4D6812 #226812
triadic
#4D6812 #124D68 #68124D
tetradic
#4D6812 #126858 #2D1268 #681222
square
#4D6812 #126858 #2D1268 #681222
split-complementary
#4D6812 #122268 #581268
monochromatic
#131A05 #263409 #4D6812 #749C1B #9AD024

Accessibility & contrast

On white

6.36
#4D6812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4D6812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D6812
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D6812#FFFFFF#000000##FFFFFF
##4D68121.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6000
Deuteranopia (green-blind)
#6A5F1B
Tritanopia (blue-blind)
#516358
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4d6812;
/* rgb */ color: rgb(77, 104, 18);
/* oklch */ color: oklch(47.9% 0.113 126.2);
Tailwind
colors: {
  custom: {
    50: '#829358',
    500: '#4d6812',
    950: '#000000',
  },
}
SCSS
$custom: #4d6812;
$custom-light: #829358;
$custom-dark: #000000;
JSON
{
  "hex": "#4d6812",
  "rgb": {
    "r": 77,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 78.837,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.47879,
    "c": 0.1132,
    "h": 126.2
  },
  "luminance": 0.11522
}

Semantic roles & 50–950 ramp

primary
#4D6812
secondary
#5736A0
accent
#3BED73
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4D6812

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

Preview Lab → · Contrast checker → · Palette generator →

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