#4A7112#4A7112

#4A7112 is a mid, vivid yellow-green. Relative luminance 0.133; OKLCH L 50.1% C 0.127 H 130.3°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#4A7112
RGBrgb(74, 113, 18)
HSLhsl(85, 73%, 26%)
HSVhsv(85, 84%, 44%)
CMYKcmyk(34.5%, 0%, 84.1%, 55.7%)
CIE-LABlab(43.23, -28.76, 43.97)
CIE-LCHlch(43.23, 52.54, 123.19°)
OKLaboklab(50.09% -0.082 0.0966)
OKLCHoklch(50.09% 0.127 130.3)
XYZxyz(8.8383, 13.3095, 2.6755)
Luminance0.1331 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7112 #391271
analogous
#716812 #4A7112 #1A7112
triadic
#4A7112 #124A71 #71124A
tetradic
#4A7112 #127168 #391271 #71121A
square
#4A7112 #127168 #391271 #71121A
split-complementary
#4A7112 #121A71 #681271
monochromatic
#111A04 #273C0A #4A7112 #6DA61A #8FDB23

Accessibility & contrast

On white

5.73
#4A7112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#4A7112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7112
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7112#FFFFFF#000000##FFFFFF
##4A71121.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#71651D
Tritanopia (blue-blind)
#4C6C60
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4a7112;
/* rgb */ color: rgb(74, 113, 18);
/* oklch */ color: oklch(50.1% 0.127 130.3);
Tailwind
colors: {
  custom: {
    50: '#819a5a',
    500: '#4a7112',
    950: '#000000',
  },
}
SCSS
$custom: #4a7112;
$custom-light: #819a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7112",
  "rgb": {
    "r": 74,
    "g": 113,
    "b": 18
  },
  "hsl": {
    "h": 84.632,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.50091,
    "c": 0.12677,
    "h": 130.3
  },
  "luminance": 0.1331
}

Semantic roles & 50–950 ramp

primary
#4A7112
secondary
#6537A8
accent
#39EF84
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7112

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

Preview Lab → · Contrast checker → · Palette generator →

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