#4A7E1F#4A7E1F

#4A7E1F is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.7% C 0.137 H 134.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#4A7E1F
RGBrgb(74, 126, 31)
HSLhsl(93, 61%, 31%)
HSVhsv(93, 75%, 49%)
CMYKcmyk(41.3%, 0%, 75.4%, 50.6%)
CIE-LABlab(47.59, -33.95, 43.60)
CIE-LCHlch(47.59, 55.26, 127.91°)
OKLaboklab(53.68% -0.0951 0.098)
OKLCHoklch(53.68% 0.137 134.2)
XYZxyz(10.5320, 16.4760, 3.9213)
Luminance0.1648 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7E1F #531F7E
analogous
#797E1F #4A7E1F #1F7E23
triadic
#4A7E1F #1F4A7E #7E1F4A
tetradic
#4A7E1F #1F797E #531F7E #7E231F
square
#4A7E1F #1F797E #531F7E #7E231F
split-complementary
#4A7E1F #231F7E #7E1F79
monochromatic
#101C07 #2D4D13 #4A7E1F #67AF2B #85D146

Accessibility & contrast

On white

4.89
#4A7E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#4A7E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7E1F
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7E1F#FFFFFF#000000##FFFFFF
##4A7E1F1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83740D
Deuteranopia (green-blind)
#7C6F28
Tritanopia (blue-blind)
#49796C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4a7e1f;
/* rgb */ color: rgb(74, 126, 31);
/* oklch */ color: oklch(53.7% 0.137 134.2);
Tailwind
colors: {
  custom: {
    50: '#81a462',
    500: '#4a7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #4a7e1f;
$custom-light: #81a462;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7e1f",
  "rgb": {
    "r": 74,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 92.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53683,
    "c": 0.13656,
    "h": 134.2
  },
  "luminance": 0.16476
}

Semantic roles & 50–950 ramp

primary
#4A7E1F
secondary
#8148B1
accent
#44E49B
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4A7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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