#4C7212#4C7212

#4C7212 is a mid, vivid yellow-green. Relative luminance 0.136; OKLCH L 50.5% C 0.127 H 129.8°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#4C7212
RGBrgb(76, 114, 18)
HSLhsl(84, 73%, 26%)
HSVhsv(84, 84%, 45%)
CMYKcmyk(33.3%, 0%, 84.2%, 55.3%)
CIE-LABlab(43.67, -28.42, 44.42)
CIE-LCHlch(43.67, 52.74, 122.61°)
OKLaboklab(50.49% -0.0813 0.0975)
OKLCHoklch(50.49% 0.127 129.8)
XYZxyz(9.1070, 13.6145, 2.7202)
Luminance0.1361 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7212 #381272
analogous
#726812 #4C7212 #1C7212
triadic
#4C7212 #124C72 #72124C
tetradic
#4C7212 #127268 #381272 #72121C
square
#4C7212 #127268 #381272 #72121C
split-complementary
#4C7212 #121C72 #681272
monochromatic
#121A04 #293D0A #4C7212 #6FA71A #92DC23

Accessibility & contrast

On white

5.64
#4C7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#4C7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7212
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7212#FFFFFF#000000##FFFFFF
##4C72121.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c7212;
/* rgb */ color: rgb(76, 114, 18);
/* oklch */ color: oklch(50.5% 0.127 129.8);
Tailwind
colors: {
  custom: {
    50: '#829b5a',
    500: '#4c7212',
    950: '#000000',
  },
}
SCSS
$custom: #4c7212;
$custom-light: #829b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7212",
  "rgb": {
    "r": 76,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 83.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.50488,
    "c": 0.12696,
    "h": 129.8
  },
  "luminance": 0.13615
}

Semantic roles & 50–950 ramp

primary
#4C7212
secondary
#6437A9
accent
#38EF81
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7212

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

Preview Lab → · Contrast checker → · Palette generator →

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