#4A7E12#4A7E12

#4A7E12 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.6% C 0.143 H 133.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#4A7E12
RGBrgb(74, 126, 18)
HSLhsl(89, 75%, 28%)
HSVhsv(89, 86%, 49%)
CMYKcmyk(41.3%, 0%, 85.7%, 50.6%)
CIE-LABlab(47.52, -34.70, 47.84)
CIE-LCHlch(47.52, 59.10, 125.95°)
OKLaboklab(53.6% -0.098 0.1048)
OKLCHoklch(53.6% 0.144 133.1)
XYZxyz(10.3939, 16.4207, 3.1940)
Luminance0.1642 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7E12 #46127E
analogous
#7E7C12 #4A7E12 #147E12
triadic
#4A7E12 #124A7E #7E124A
tetradic
#4A7E12 #127E7C #46127E #7E1214
square
#4A7E12 #127E7C #46127E #7E1214
split-complementary
#4A7E12 #12147E #7C127E
monochromatic
#101B04 #2B480A #4A7E12 #69B41A #89E12A

Accessibility & contrast

On white

4.90
#4A7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#4A7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7E12
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7E12#FFFFFF#000000##FFFFFF
##4A7E121.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7D6F1F
Tritanopia (blue-blind)
#4A796B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4a7e12;
/* rgb */ color: rgb(74, 126, 18);
/* oklch */ color: oklch(53.6% 0.143 133.1);
Tailwind
colors: {
  custom: {
    50: '#82a45c',
    500: '#4a7e12',
    950: '#000000',
  },
}
SCSS
$custom: #4a7e12;
$custom-light: #82a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7e12",
  "rgb": {
    "r": 74,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 88.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53602,
    "c": 0.1435,
    "h": 133.1
  },
  "luminance": 0.16421
}

Semantic roles & 50–950 ramp

primary
#4A7E12
secondary
#7438B4
accent
#36F290
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4A7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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