#4A8D1F#4A8D1F

#4A8D1F is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.7% C 0.156 H 136.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#4A8D1F
RGBrgb(74, 141, 31)
HSLhsl(97, 64%, 34%)
HSVhsv(97, 78%, 55%)
CMYKcmyk(47.5%, 0%, 78%, 44.7%)
CIE-LABlab(52.51, -40.40, 48.42)
CIE-LCHlch(52.51, 63.06, 129.84°)
OKLaboklab(57.72% -0.1125 0.1081)
OKLCHoklch(57.72% 0.156 136.2)
XYZxyz(12.5959, 20.6037, 4.6093)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A8D1F #621F8D
analogous
#818D1F #4A8D1F #1F8D2B
triadic
#4A8D1F #1F4A8D #8D1F4A
tetradic
#4A8D1F #1F818D #621F8D #8D2B1F
square
#4A8D1F #1F818D #621F8D #8D2B1F
split-complementary
#4A8D1F #2B1F8D #8D1F81
monochromatic
#152909 #305B14 #4A8D1F #64BF2A #84D84E

Accessibility & contrast

On white

4.10
#4A8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#4A8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A8D1F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A8D1F#FFFFFF#000000##000000
##4A8D1F1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928104
Deuteranopia (green-blind)
#897B2B
Tritanopia (blue-blind)
#478878
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4a8d1f;
/* rgb */ color: rgb(74, 141, 31);
/* oklch */ color: oklch(57.7% 0.156 136.2);
Tailwind
colors: {
  custom: {
    50: '#83af64',
    500: '#4a8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #4a8d1f;
$custom-light: #83af64;
$custom-dark: #000000;
JSON
{
  "hex": "#4a8d1f",
  "rgb": {
    "r": 74,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 96.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57717,
    "c": 0.15601,
    "h": 136.2
  },
  "luminance": 0.20605
}

Semantic roles & 50–950 ramp

primary
#4A8D1F
secondary
#904DBB
accent
#41E7A6
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4A8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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