#4A8126#4A8126

#4A8126 is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.5% C 0.136 H 135.4°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4A8126
RGBrgb(74, 129, 38)
HSLhsl(96, 54%, 33%)
HSVhsv(96, 71%, 51%)
CMYKcmyk(42.6%, 0%, 70.5%, 49.4%)
CIE-LABlab(48.63, -34.74, 41.82)
CIE-LCHlch(48.63, 54.37, 129.72°)
OKLaboklab(54.55% -0.0967 0.0953)
OKLCHoklch(54.55% 0.136 135.4)
XYZxyz(11.0239, 17.2957, 4.5909)
Luminance0.1730 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A8126 #5D2681
analogous
#778126 #4A8126 #268130
triadic
#4A8126 #264A81 #81264A
tetradic
#4A8126 #267781 #5D2681 #813026
square
#4A8126 #267781 #5D2681 #813026
split-complementary
#4A8126 #302681 #812677
monochromatic
#14220A #2F5218 #4A8126 #65B034 #84CD55

Accessibility & contrast

On white

4.71
#4A8126 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#4A8126 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A8126
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A8126#FFFFFF#000000##FFFFFF
##4A81261.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867619
Deuteranopia (green-blind)
#7E722E
Tritanopia (blue-blind)
#487C6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4a8126;
/* rgb */ color: rgb(74, 129, 38);
/* oklch */ color: oklch(54.5% 0.136 135.4);
Tailwind
colors: {
  custom: {
    50: '#81a666',
    500: '#4a8126',
    950: '#000000',
  },
}
SCSS
$custom: #4a8126;
$custom-light: #81a666;
$custom-dark: #000000;
JSON
{
  "hex": "#4a8126",
  "rgb": {
    "r": 74,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 96.264,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54549,
    "c": 0.13578,
    "h": 135.4
  },
  "luminance": 0.17296
}

Semantic roles & 50–950 ramp

primary
#4A8126
secondary
#8B51B1
accent
#4ADEA3
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4A8126

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

Preview Lab → · Contrast checker → · Palette generator →

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