#4A7218#4A7218

#4A7218 is a mid, vivid yellow-green. Relative luminance 0.136; OKLCH L 50.4% C 0.125 H 131.1°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#4A7218
RGBrgb(74, 114, 24)
HSLhsl(87, 65%, 27%)
HSVhsv(87, 79%, 45%)
CMYKcmyk(35.1%, 0%, 78.9%, 55.3%)
CIE-LABlab(43.59, -28.90, 42.29)
CIE-LCHlch(43.59, 51.23, 124.35°)
OKLaboklab(50.4% -0.082 0.0941)
OKLCHoklch(50.4% 0.125 131.1)
XYZxyz(9.0062, 13.5561, 3.0060)
Luminance0.1356 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7218 #401872
analogous
#726D18 #4A7218 #1D7218
triadic
#4A7218 #184A72 #72184A
tetradic
#4A7218 #18726D #401872 #72181D
square
#4A7218 #18726D #401872 #72181D
split-complementary
#4A7218 #181D72 #6D1872
monochromatic
#101905 #293F0D #4A7218 #6BA523 #8BD431

Accessibility & contrast

On white

5.66
#4A7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#4A7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7218
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7218#FFFFFF#000000##FFFFFF
##4A72181.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776904
Deuteranopia (green-blind)
#726621
Tritanopia (blue-blind)
#4C6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4a7218;
/* rgb */ color: rgb(74, 114, 24);
/* oklch */ color: oklch(50.4% 0.125 131.1);
Tailwind
colors: {
  custom: {
    50: '#809b5c',
    500: '#4a7218',
    950: '#000000',
  },
}
SCSS
$custom: #4a7218;
$custom-light: #809b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7218",
  "rgb": {
    "r": 74,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 86.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.50398,
    "c": 0.12483,
    "h": 131.1
  },
  "luminance": 0.13556
}

Semantic roles & 50–950 ramp

primary
#4A7218
secondary
#6D3EA7
accent
#40E88B
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7218

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

Preview Lab → · Contrast checker → · Palette generator →

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