#2A7418#2A7418

#2A7418 is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.4% C 0.144 H 140.3°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#2A7418
RGBrgb(42, 116, 24)
HSLhsl(108, 66%, 27%)
HSVhsv(108, 79%, 45%)
CMYKcmyk(63.8%, 0%, 79.3%, 54.5%)
CIE-LABlab(42.84, -40.44, 41.07)
CIE-LCHlch(42.84, 57.64, 134.56°)
OKLaboklab(49.39% -0.1109 0.0921)
OKLCHoklch(49.39% 0.144 140.3)
XYZxyz(7.3648, 13.0483, 2.9944)
Luminance0.1305 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7418 #621874
analogous
#587418 #2A7418 #187434
triadic
#2A7418 #182A74 #74182A
tetradic
#2A7418 #185874 #621874 #743418
square
#2A7418 #185874 #621874 #743418
split-complementary
#2A7418 #341874 #741858
monochromatic
#091905 #18410E #2A7418 #3CA722 #52D532

Accessibility & contrast

On white

5.82
#2A7418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#2A7418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7418
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7418#FFFFFF#000000##FFFFFF
##2A74181.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776904
Deuteranopia (green-blind)
#6E6322
Tritanopia (blue-blind)
#1F7063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2a7418;
/* rgb */ color: rgb(42, 116, 24);
/* oklch */ color: oklch(49.4% 0.144 140.3);
Tailwind
colors: {
  custom: {
    50: '#6e9d5c',
    500: '#2a7418',
    950: '#000000',
  },
}
SCSS
$custom: #2a7418;
$custom-light: #6e9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7418",
  "rgb": {
    "r": 42,
    "g": 116,
    "b": 24
  },
  "hsl": {
    "h": 108.261,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49387,
    "c": 0.14416,
    "h": 140.3
  },
  "luminance": 0.13049
}

Semantic roles & 50–950 ramp

primary
#2A7418
secondary
#943FA9
accent
#3FE9C7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7418

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

Preview Lab → · Contrast checker → · Palette generator →

#2A7418 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva