#2A7A22#2A7A22

#2A7A22 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.145 H 141.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#2A7A22
RGBrgb(42, 122, 34)
HSLhsl(115, 56%, 31%)
HSVhsv(115, 72%, 48%)
CMYKcmyk(65.6%, 0%, 72.1%, 52.2%)
CIE-LABlab(44.98, -41.88, 39.29)
CIE-LCHlch(44.98, 57.43, 136.82°)
OKLaboklab(51.18% -0.1142 0.0898)
OKLCHoklch(51.18% 0.145 141.8)
XYZxyz(8.2027, 14.5260, 3.8846)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A22 #72227A
analogous
#567A22 #2A7A22 #227A46
triadic
#2A7A22 #222A7A #7A222A
tetradic
#2A7A22 #22567A #72227A #7A4622
square
#2A7A22 #22567A #72227A #7A4622
split-complementary
#2A7A22 #46227A #7A2256
monochromatic
#091A07 #1A4A15 #2A7A22 #3AAA2F #56CD4A

Accessibility & contrast

On white

5.38
#2A7A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2A7A22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A22
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A22#FFFFFF#000000##FFFFFF
##2A7A221.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E15
Deuteranopia (green-blind)
#73682A
Tritanopia (blue-blind)
#1B7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a22;
/* rgb */ color: rgb(42, 122, 34);
/* oklch */ color: oklch(51.2% 0.145 141.8);
Tailwind
colors: {
  custom: {
    50: '#6fa162',
    500: '#2a7a22',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a22;
$custom-light: #6fa162;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a22",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 114.545,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51182,
    "c": 0.14527,
    "h": 141.8
  },
  "luminance": 0.14527
}

Semantic roles & 50–950 ramp

primary
#2A7A22
secondary
#A44BAD
accent
#48E0D2
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7A22

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

Preview Lab → · Contrast checker → · Palette generator →

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