#2A7622#2A7622

#2A7622 is a mid, vivid green. Relative luminance 0.136; OKLCH L 50.0% C 0.140 H 141.8°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#2A7622
RGBrgb(42, 118, 34)
HSLhsl(114, 55%, 30%)
HSVhsv(114, 71%, 46%)
CMYKcmyk(64.4%, 0%, 71.2%, 53.7%)
CIE-LABlab(43.60, -40.35, 37.84)
CIE-LCHlch(43.60, 55.32, 136.84°)
OKLaboklab(50.04% -0.11 0.0867)
OKLCHoklch(50.04% 0.14 141.8)
XYZxyz(7.7216, 13.5639, 3.7242)
Luminance0.1356 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7622 #6E2276
analogous
#547622 #2A7622 #227644
triadic
#2A7622 #222A76 #76222A
tetradic
#2A7622 #225476 #6E2276 #764422
square
#2A7622 #225476 #6E2276 #764422
split-complementary
#2A7622 #442276 #762254
monochromatic
#081807 #194614 #2A7622 #3BA630 #54CA48

Accessibility & contrast

On white

5.66
#2A7622 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#2A7622 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7622
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7622#FFFFFF#000000##FFFFFF
##2A76221.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)
#796B16
Deuteranopia (green-blind)
#70652A
Tritanopia (blue-blind)
#1D7265
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2a7622;
/* rgb */ color: rgb(42, 118, 34);
/* oklch */ color: oklch(50.0% 0.140 141.8);
Tailwind
colors: {
  custom: {
    50: '#6e9e62',
    500: '#2a7622',
    950: '#000000',
  },
}
SCSS
$custom: #2a7622;
$custom-light: #6e9e62;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7622",
  "rgb": {
    "r": 42,
    "g": 118,
    "b": 34
  },
  "hsl": {
    "h": 114.286,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50043,
    "c": 0.14013,
    "h": 141.8
  },
  "luminance": 0.13565
}

Semantic roles & 50–950 ramp

primary
#2A7622
secondary
#A04BA9
accent
#49DFD0
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E05
muted
#7B7E7A

Preview Lab

Preview with #2A7622

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

Preview Lab → · Contrast checker → · Palette generator →

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