#4D7212#4D7212

#4D7212 is a mid, vivid yellow-green. Relative luminance 0.137; OKLCH L 50.6% C 0.126 H 129.4°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#4D7212
RGBrgb(77, 114, 18)
HSLhsl(83, 73%, 26%)
HSVhsv(83, 84%, 45%)
CMYKcmyk(32.5%, 0%, 84.2%, 55.3%)
CIE-LABlab(43.74, -28.02, 44.50)
CIE-LCHlch(43.74, 52.58, 122.19°)
OKLaboklab(50.55% -0.0802 0.0977)
OKLCHoklch(50.55% 0.126 129.4)
XYZxyz(9.1870, 13.6558, 2.7239)
Luminance0.1366 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7212 #371272
analogous
#726712 #4D7212 #1D7212
triadic
#4D7212 #124D72 #72124D
tetradic
#4D7212 #127267 #371272 #72121D
square
#4D7212 #127267 #371272 #72121D
split-complementary
#4D7212 #121D72 #671272
monochromatic
#121A04 #293D0A #4D7212 #71A71A #94DC23

Accessibility & contrast

On white

5.63
#4D7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#4D7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7212
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7212#FFFFFF#000000##FFFFFF
##4D72121.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#73661D
Tritanopia (blue-blind)
#4F6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4d7212;
/* rgb */ color: rgb(77, 114, 18);
/* oklch */ color: oklch(50.6% 0.126 129.4);
Tailwind
colors: {
  custom: {
    50: '#839a5a',
    500: '#4d7212',
    950: '#000000',
  },
}
SCSS
$custom: #4d7212;
$custom-light: #839a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7212",
  "rgb": {
    "r": 77,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 83.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.50554,
    "c": 0.1264,
    "h": 129.4
  },
  "luminance": 0.13656
}

Semantic roles & 50–950 ramp

primary
#4D7212
secondary
#6337A9
accent
#38EF7F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4D7212

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

Preview Lab → · Contrast checker → · Palette generator →

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