#4A8E12#4A8E12

#4A8E12 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 57.9% C 0.163 H 135.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#4A8E12
RGBrgb(74, 142, 18)
HSLhsl(93, 78%, 31%)
HSVhsv(93, 87%, 56%)
CMYKcmyk(47.9%, 0%, 87.3%, 44.3%)
CIE-LABlab(52.78, -41.48, 52.48)
CIE-LCHlch(52.78, 66.89, 128.32°)
OKLaboklab(57.92% -0.1162 0.1146)
OKLCHoklch(57.92% 0.163 135.4)
XYZxyz(12.6059, 20.8447, 3.9313)
Luminance0.2085 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A8E12 #56128E
analogous
#888E12 #4A8E12 #128E18
triadic
#4A8E12 #124A8E #8E124A
tetradic
#4A8E12 #12888E #56128E #8E1812
square
#4A8E12 #12888E #56128E #8E1812
split-complementary
#4A8E12 #18128E #8E1288
monochromatic
#112104 #2E580B #4A8E12 #66C419 #85E535

Accessibility & contrast

On white

4.06
#4A8E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#4A8E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A8E12
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A8E12#FFFFFF#000000##000000
##4A8E121.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#8B7C23
Tritanopia (blue-blind)
#488878
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4a8e12;
/* rgb */ color: rgb(74, 142, 18);
/* oklch */ color: oklch(57.9% 0.163 135.4);
Tailwind
colors: {
  custom: {
    50: '#84af5e',
    500: '#4a8e12',
    950: '#000000',
  },
}
SCSS
$custom: #4a8e12;
$custom-light: #84af5e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a8e12",
  "rgb": {
    "r": 74,
    "g": 142,
    "b": 18
  },
  "hsl": {
    "h": 92.903,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57917,
    "c": 0.1632,
    "h": 135.4
  },
  "luminance": 0.20846
}

Semantic roles & 50–950 ramp

primary
#4A8E12
secondary
#853AC2
accent
#34F49D
background
#F8FAF5
surface
#F0F5EA
border
#CBCFC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #4A8E12

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

Preview Lab → · Contrast checker → · Palette generator →

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