#4C7412#4C7412

#4C7412 is a mid, vivid yellow-green. Relative luminance 0.141; OKLCH L 51.0% C 0.130 H 130.3°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#4C7412
RGBrgb(76, 116, 18)
HSLhsl(84, 73%, 26%)
HSVhsv(84, 84%, 45%)
CMYKcmyk(34.5%, 0%, 84.5%, 54.5%)
CIE-LABlab(44.33, -29.37, 45.02)
CIE-LCHlch(44.33, 53.75, 123.12°)
OKLaboklab(51.03% -0.0838 0.0988)
OKLCHoklch(51.03% 0.13 130.3)
XYZxyz(9.3350, 14.0706, 2.7962)
Luminance0.1407 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7412 #3A1274
analogous
#746B12 #4C7412 #1B7412
triadic
#4C7412 #124C74 #74124C
tetradic
#4C7412 #12746B #3A1274 #74121B
square
#4C7412 #12746B #3A1274 #74121B
split-complementary
#4C7412 #121B74 #6B1274
monochromatic
#111A04 #293F0A #4C7412 #6FA91A #91DD23

Accessibility & contrast

On white

5.51
#4C7412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#4C7412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7412
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7412#FFFFFF#000000##FFFFFF
##4C74121.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#74681D
Tritanopia (blue-blind)
#4E6F62
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4c7412;
/* rgb */ color: rgb(76, 116, 18);
/* oklch */ color: oklch(51.0% 0.130 130.3);
Tailwind
colors: {
  custom: {
    50: '#829c5a',
    500: '#4c7412',
    950: '#000000',
  },
}
SCSS
$custom: #4c7412;
$custom-light: #829c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7412",
  "rgb": {
    "r": 76,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 84.49,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.51026,
    "c": 0.12957,
    "h": 130.3
  },
  "luminance": 0.14071
}

Semantic roles & 50–950 ramp

primary
#4C7412
secondary
#6637AB
accent
#38F083
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7412

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

Preview Lab → · Contrast checker → · Palette generator →

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