#4A7018#4A7018

#4A7018 is a mid, vivid yellow-green. Relative luminance 0.131; OKLCH L 49.9% C 0.122 H 130.6°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#4A7018
RGBrgb(74, 112, 24)
HSLhsl(86, 65%, 27%)
HSVhsv(86, 79%, 44%)
CMYKcmyk(33.9%, 0%, 78.6%, 56.1%)
CIE-LABlab(42.93, -27.95, 41.66)
CIE-LCHlch(42.93, 50.16, 123.86°)
OKLaboklab(49.86% -0.0794 0.0928)
OKLCHoklch(49.86% 0.122 130.6)
XYZxyz(8.7830, 13.1098, 2.9317)
Luminance0.1311 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7018 #3E1870
analogous
#706A18 #4A7018 #1E7018
triadic
#4A7018 #184A70 #70184A
tetradic
#4A7018 #18706A #3E1870 #70181E
square
#4A7018 #18706A #3E1870 #70181E
split-complementary
#4A7018 #181E70 #6A1870
monochromatic
#111905 #293E0D #4A7018 #6BA223 #8CD330

Accessibility & contrast

On white

5.80
#4A7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#4A7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7018
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7018#FFFFFF#000000##FFFFFF
##4A70181.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#706421
Tritanopia (blue-blind)
#4C6B5F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4a7018;
/* rgb */ color: rgb(74, 112, 24);
/* oklch */ color: oklch(49.9% 0.122 130.6);
Tailwind
colors: {
  custom: {
    50: '#80995c',
    500: '#4a7018',
    950: '#000000',
  },
}
SCSS
$custom: #4a7018;
$custom-light: #80995c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7018",
  "rgb": {
    "r": 74,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 85.909,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.49859,
    "c": 0.12213,
    "h": 130.6
  },
  "luminance": 0.1311
}

Semantic roles & 50–950 ramp

primary
#4A7018
secondary
#6B3EA5
accent
#40E888
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7018

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

Preview Lab → · Contrast checker → · Palette generator →

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