#4A7A18#4A7A18

#4A7A18 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.6% C 0.135 H 132.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#4A7A18
RGBrgb(74, 122, 24)
HSLhsl(89, 67%, 29%)
HSVhsv(89, 80%, 48%)
CMYKcmyk(39.3%, 0%, 80.3%, 52.2%)
CIE-LABlab(46.23, -32.60, 44.81)
CIE-LCHlch(46.23, 55.42, 126.04°)
OKLaboklab(52.56% -0.092 0.0994)
OKLCHoklch(52.56% 0.135 132.8)
XYZxyz(9.9483, 15.4404, 3.3201)
Luminance0.1544 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7A18 #48187A
analogous
#7A7918 #4A7A18 #197A18
triadic
#4A7A18 #184A7A #7A184A
tetradic
#4A7A18 #187A79 #48187A #7A1819
square
#4A7A18 #187A79 #48187A #7A1819
split-complementary
#4A7A18 #18197A #79187A
monochromatic
#101A05 #2B470E #4A7A18 #69AD22 #88D735

Accessibility & contrast

On white

5.14
#4A7A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#4A7A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7A18
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7A18#FFFFFF#000000##FFFFFF
##4A7A181.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#796C22
Tritanopia (blue-blind)
#4A7568
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4a7a18;
/* rgb */ color: rgb(74, 122, 24);
/* oklch */ color: oklch(52.6% 0.135 132.8);
Tailwind
colors: {
  custom: {
    50: '#81a15e',
    500: '#4a7a18',
    950: '#000000',
  },
}
SCSS
$custom: #4a7a18;
$custom-light: #81a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7a18",
  "rgb": {
    "r": 74,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 89.388,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52556,
    "c": 0.13545,
    "h": 132.8
  },
  "luminance": 0.15441
}

Semantic roles & 50–950 ramp

primary
#4A7A18
secondary
#763FAF
accent
#3EEA92
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4A7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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