#4A7512#4A7512

#4A7512 is a mid, vivid yellow-green. Relative luminance 0.142; OKLCH L 51.2% C 0.132 H 131.3°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#4A7512
RGBrgb(74, 117, 18)
HSLhsl(86, 73%, 26%)
HSVhsv(86, 85%, 46%)
CMYKcmyk(36.8%, 0%, 84.6%, 54.1%)
CIE-LABlab(44.55, -30.63, 45.17)
CIE-LCHlch(44.55, 54.58, 124.14°)
OKLaboklab(51.17% -0.0871 0.0992)
OKLCHoklch(51.17% 0.132 131.3)
XYZxyz(9.2944, 14.2217, 2.8275)
Luminance0.1422 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7512 #3D1275
analogous
#756F12 #4A7512 #187512
triadic
#4A7512 #124A75 #75124A
tetradic
#4A7512 #12756F #3D1275 #751218
square
#4A7512 #12756F #3D1275 #751218
split-complementary
#4A7512 #121875 #6F1275
monochromatic
#111B04 #28400A #4A7512 #6CAA1A #8DDD24

Accessibility & contrast

On white

5.46
#4A7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#4A7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7512
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7512#FFFFFF#000000##FFFFFF
##4A75121.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6B00
Deuteranopia (green-blind)
#75681E
Tritanopia (blue-blind)
#4B7063
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4a7512;
/* rgb */ color: rgb(74, 117, 18);
/* oklch */ color: oklch(51.2% 0.132 131.3);
Tailwind
colors: {
  custom: {
    50: '#819d5a',
    500: '#4a7512',
    950: '#000000',
  },
}
SCSS
$custom: #4a7512;
$custom-light: #819d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7512",
  "rgb": {
    "r": 74,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 86.061,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51171,
    "c": 0.13198,
    "h": 131.3
  },
  "luminance": 0.14222
}

Semantic roles & 50–950 ramp

primary
#4A7512
secondary
#6A37AC
accent
#38F088
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7512

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

Preview Lab → · Contrast checker → · Palette generator →

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