#4A8F12#4A8F12

#4A8F12 is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.2% C 0.164 H 135.5°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#4A8F12
RGBrgb(74, 143, 18)
HSLhsl(93, 78%, 32%)
HSVhsv(93, 87%, 56%)
CMYKcmyk(48.3%, 0%, 87.4%, 43.9%)
CIE-LABlab(53.11, -41.88, 52.77)
CIE-LCHlch(53.11, 67.37, 128.44°)
OKLaboklab(58.19% -0.1172 0.1153)
OKLCHoklch(58.19% 0.164 135.5)
XYZxyz(12.7554, 21.1436, 3.9812)
Luminance0.2114 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A8F12 #57128F
analogous
#898F12 #4A8F12 #128F19
triadic
#4A8F12 #124A8F #8F124A
tetradic
#4A8F12 #12898F #57128F #8F1912
square
#4A8F12 #12898F #57128F #8F1912
split-complementary
#4A8F12 #19128F #8F1289
monochromatic
#122204 #2E590B #4A8F12 #66C519 #85E636

Accessibility & contrast

On white

4.02
#4A8F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#4A8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A8F12
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A8F12#FFFFFF#000000##000000
##4A8F121.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8B7D23
Tritanopia (blue-blind)
#478979
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4a8f12;
/* rgb */ color: rgb(74, 143, 18);
/* oklch */ color: oklch(58.2% 0.164 135.5);
Tailwind
colors: {
  custom: {
    50: '#84b05f',
    500: '#4a8f12',
    950: '#000000',
  },
}
SCSS
$custom: #4a8f12;
$custom-light: #84b05f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a8f12",
  "rgb": {
    "r": 74,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 93.12,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.58186,
    "c": 0.16441,
    "h": 135.5
  },
  "luminance": 0.21144
}

Semantic roles & 50–950 ramp

primary
#4A8F12
secondary
#863AC3
accent
#34F49E
background
#F8FAF5
surface
#F0F5EA
border
#CBCFC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #4A8F12

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

Preview Lab → · Contrast checker → · Palette generator →

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