#4A7918#4A7918

#4A7918 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.3% C 0.134 H 132.6°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#4A7918
RGBrgb(74, 121, 24)
HSLhsl(89, 67%, 28%)
HSVhsv(89, 80%, 47%)
CMYKcmyk(38.8%, 0%, 80.2%, 52.5%)
CIE-LABlab(45.90, -32.15, 44.50)
CIE-LCHlch(45.90, 54.90, 125.85°)
OKLaboklab(52.29% -0.0908 0.0988)
OKLCHoklch(52.29% 0.134 132.6)
XYZxyz(9.8262, 15.1961, 3.2794)
Luminance0.1520 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7918 #471879
analogous
#797718 #4A7918 #197918
triadic
#4A7918 #184A79 #79184A
tetradic
#4A7918 #187977 #471879 #791819
square
#4A7918 #187977 #471879 #791819
split-complementary
#4A7918 #181979 #771879
monochromatic
#101A05 #2B460E #4A7918 #69AC22 #88D735

Accessibility & contrast

On white

5.20
#4A7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#4A7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7918
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7918#FFFFFF#000000##FFFFFF
##4A79181.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#786B22
Tritanopia (blue-blind)
#4B7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4a7918;
/* rgb */ color: rgb(74, 121, 24);
/* oklch */ color: oklch(52.3% 0.134 132.6);
Tailwind
colors: {
  custom: {
    50: '#81a05d',
    500: '#4a7918',
    950: '#000000',
  },
}
SCSS
$custom: #4a7918;
$custom-light: #81a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7918",
  "rgb": {
    "r": 74,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 89.072,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52286,
    "c": 0.13413,
    "h": 132.6
  },
  "luminance": 0.15197
}

Semantic roles & 50–950 ramp

primary
#4A7918
secondary
#753FAE
accent
#3EEA91
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4A7918

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

Preview Lab → · Contrast checker → · Palette generator →

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