#4A8012#4A8012

#4A8012 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.1% C 0.146 H 133.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#4A8012
RGBrgb(74, 128, 18)
HSLhsl(89, 75%, 29%)
HSVhsv(89, 86%, 50%)
CMYKcmyk(42.2%, 0%, 85.9%, 49.8%)
CIE-LABlab(48.18, -35.58, 48.43)
CIE-LCHlch(48.18, 60.09, 126.30°)
OKLaboklab(54.14% -0.1004 0.1061)
OKLCHoklch(54.14% 0.146 133.4)
XYZxyz(10.6522, 16.9373, 3.2801)
Luminance0.1694 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A8012 #481280
analogous
#807F12 #4A8012 #138012
triadic
#4A8012 #124A80 #80124A
tetradic
#4A8012 #12807F #481280 #801213
square
#4A8012 #12807F #481280 #801213
split-complementary
#4A8012 #121380 #7F1280
monochromatic
#101B04 #2B4A0A #4A8012 #69B61A #88E12B

Accessibility & contrast

On white

4.79
#4A8012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#4A8012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A8012
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A8012#FFFFFF#000000##FFFFFF
##4A80121.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7E7120
Tritanopia (blue-blind)
#4A7B6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4a8012;
/* rgb */ color: rgb(74, 128, 18);
/* oklch */ color: oklch(54.1% 0.146 133.4);
Tailwind
colors: {
  custom: {
    50: '#82a55c',
    500: '#4a8012',
    950: '#000000',
  },
}
SCSS
$custom: #4a8012;
$custom-light: #82a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a8012",
  "rgb": {
    "r": 74,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 89.455,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54142,
    "c": 0.14602,
    "h": 133.4
  },
  "luminance": 0.16938
}

Semantic roles & 50–950 ramp

primary
#4A8012
secondary
#7638B6
accent
#36F292
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4A8012

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

Preview Lab → · Contrast checker → · Palette generator →

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