#4A8018#4A8018

#4A8018 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.2% C 0.143 H 133.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#4A8018
RGBrgb(74, 128, 24)
HSLhsl(91, 68%, 30%)
HSVhsv(91, 81%, 50%)
CMYKcmyk(42.2%, 0%, 81.3%, 49.8%)
CIE-LABlab(48.21, -35.28, 46.67)
CIE-LCHlch(48.21, 58.51, 127.08°)
OKLaboklab(54.17% -0.0992 0.1033)
OKLCHoklch(54.17% 0.143 133.8)
XYZxyz(10.7079, 16.9596, 3.5733)
Luminance0.1696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A8018 #4E1880
analogous
#7E8018 #4A8018 #18801A
triadic
#4A8018 #184A80 #80184A
tetradic
#4A8018 #187E80 #4E1880 #801A18
square
#4A8018 #187E80 #4E1880 #801A18
split-complementary
#4A8018 #1A1880 #80187E
monochromatic
#0F1A05 #2C4C0E #4A8018 #68B422 #86DA39

Accessibility & contrast

On white

4.78
#4A8018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4A8018
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A8018#FFFFFF#000000##FFFFFF
##4A80181.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a8018;
/* rgb */ color: rgb(74, 128, 24);
/* oklch */ color: oklch(54.2% 0.143 133.8);
Tailwind
colors: {
  custom: {
    50: '#82a55f',
    500: '#4a8018',
    950: '#000000',
  },
}
SCSS
$custom: #4a8018;
$custom-light: #82a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a8018",
  "rgb": {
    "r": 74,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 91.154,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54174,
    "c": 0.14323,
    "h": 133.8
  },
  "luminance": 0.1696
}

Semantic roles & 50–950 ramp

primary
#4A8018
secondary
#7C40B4
accent
#3DEB97
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4A8018

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

Preview Lab → · Contrast checker → · Palette generator →

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