#2A7218#2A7218

#2A7218 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.142 H 140.2°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#2A7218
RGBrgb(42, 114, 24)
HSLhsl(108, 65%, 27%)
HSVhsv(108, 79%, 45%)
CMYKcmyk(63.2%, 0%, 78.9%, 55.3%)
CIE-LABlab(42.14, -39.67, 40.39)
CIE-LCHlch(42.14, 56.62, 134.49°)
OKLaboklab(48.81% -0.1088 0.0907)
OKLCHoklch(48.81% 0.142 140.2)
XYZxyz(7.1367, 12.5922, 2.9184)
Luminance0.1259 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7218 #601872
analogous
#577218 #2A7218 #187233
triadic
#2A7218 #182A72 #72182A
tetradic
#2A7218 #185772 #601872 #723318
square
#2A7218 #185772 #601872 #723318
split-complementary
#2A7218 #331872 #721857
monochromatic
#091905 #173F0D #2A7218 #3DA523 #51D431

Accessibility & contrast

On white

5.97
#2A7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2A7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7218
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7218#FFFFFF#000000##FFFFFF
##2A72181.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#6C6122
Tritanopia (blue-blind)
#206E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7218;
/* rgb */ color: rgb(42, 114, 24);
/* oklch */ color: oklch(48.8% 0.142 140.2);
Tailwind
colors: {
  custom: {
    50: '#6d9b5c',
    500: '#2a7218',
    950: '#000000',
  },
}
SCSS
$custom: #2a7218;
$custom-light: #6d9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7218",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 108,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.48813,
    "c": 0.14165,
    "h": 140.2
  },
  "luminance": 0.12593
}

Semantic roles & 50–950 ramp

primary
#2A7218
secondary
#923EA7
accent
#40E8C6
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A7218

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

Preview Lab → · Contrast checker → · Palette generator →

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