#4C7312#4C7312

#4C7312 is a mid, vivid yellow-green. Relative luminance 0.138; OKLCH L 50.8% C 0.128 H 130.1°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#4C7312
RGBrgb(76, 115, 18)
HSLhsl(84, 73%, 26%)
HSVhsv(84, 84%, 45%)
CMYKcmyk(33.9%, 0%, 84.3%, 54.9%)
CIE-LABlab(44.00, -28.90, 44.72)
CIE-LCHlch(44.00, 53.24, 122.87°)
OKLaboklab(50.76% -0.0825 0.0982)
OKLCHoklch(50.76% 0.128 130.1)
XYZxyz(9.2204, 13.8413, 2.7580)
Luminance0.1384 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7312 #391273
analogous
#736912 #4C7312 #1B7312
triadic
#4C7312 #124C73 #73124C
tetradic
#4C7312 #127369 #391273 #73121B
square
#4C7312 #127369 #391273 #73121B
split-complementary
#4C7312 #121B73 #691273
monochromatic
#111A04 #293E0A #4C7312 #6FA81A #92DD23

Accessibility & contrast

On white

5.57
#4C7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#4C7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7312
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7312#FFFFFF#000000##FFFFFF
##4C73121.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#73671D
Tritanopia (blue-blind)
#4E6E61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4c7312;
/* rgb */ color: rgb(76, 115, 18);
/* oklch */ color: oklch(50.8% 0.128 130.1);
Tailwind
colors: {
  custom: {
    50: '#829b5a',
    500: '#4c7312',
    950: '#000000',
  },
}
SCSS
$custom: #4c7312;
$custom-light: #829b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7312",
  "rgb": {
    "r": 76,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 84.124,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.50757,
    "c": 0.12826,
    "h": 130.1
  },
  "luminance": 0.13842
}

Semantic roles & 50–950 ramp

primary
#4C7312
secondary
#6537AA
accent
#38F082
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7312

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

Preview Lab → · Contrast checker → · Palette generator →

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