#4C7512#4C7512

#4C7512 is a mid, vivid yellow-green. Relative luminance 0.143; OKLCH L 51.3% C 0.131 H 130.6°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#4C7512
RGBrgb(76, 117, 18)
HSLhsl(85, 73%, 26%)
HSVhsv(85, 85%, 46%)
CMYKcmyk(35%, 0%, 84.6%, 54.1%)
CIE-LABlab(44.66, -29.84, 45.32)
CIE-LCHlch(44.66, 54.26, 123.36°)
OKLaboklab(51.3% -0.0851 0.0994)
OKLCHoklch(51.3% 0.131 130.6)
XYZxyz(9.4509, 14.3024, 2.8348)
Luminance0.1430 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7512 #3B1275
analogous
#756D12 #4C7512 #1B7512
triadic
#4C7512 #124C75 #75124C
tetradic
#4C7512 #12756D #3B1275 #75121B
square
#4C7512 #12756D #3B1275 #75121B
split-complementary
#4C7512 #121B75 #6D1275
monochromatic
#111B04 #2A400A #4C7512 #6EAA1A #91DD24

Accessibility & contrast

On white

5.44
#4C7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#4C7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7512
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7512#FFFFFF#000000##FFFFFF
##4C75121.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#75691E
Tritanopia (blue-blind)
#4E7063
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4c7512;
/* rgb */ color: rgb(76, 117, 18);
/* oklch */ color: oklch(51.3% 0.131 130.6);
Tailwind
colors: {
  custom: {
    50: '#829d5a',
    500: '#4c7512',
    950: '#000000',
  },
}
SCSS
$custom: #4c7512;
$custom-light: #829d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7512",
  "rgb": {
    "r": 76,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 84.848,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51295,
    "c": 0.13087,
    "h": 130.6
  },
  "luminance": 0.14303
}

Semantic roles & 50–950 ramp

primary
#4C7512
secondary
#6737AC
accent
#38F084
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7512

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

Preview Lab → · Contrast checker → · Palette generator →

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