#2A7222#2A7222

#2A7222 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.9% C 0.135 H 141.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#2A7222
RGBrgb(42, 114, 34)
HSLhsl(114, 54%, 29%)
HSVhsv(114, 70%, 45%)
CMYKcmyk(63.2%, 0%, 70.2%, 55.3%)
CIE-LABlab(42.22, -38.79, 36.36)
CIE-LCHlch(42.22, 53.17, 136.85°)
OKLaboklab(48.9% -0.1058 0.0836)
OKLCHoklch(48.9% 0.135 141.7)
XYZxyz(7.2605, 12.6417, 3.5705)
Luminance0.1264 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7222 #6A2272
analogous
#527222 #2A7222 #227242
triadic
#2A7222 #222A72 #72222A
tetradic
#2A7222 #225272 #6A2272 #724222
square
#2A7222 #225272 #6A2272 #724222
split-complementary
#2A7222 #422272 #722252
monochromatic
#091807 #194314 #2A7222 #3BA130 #53C846

Accessibility & contrast

On white

5.95
#2A7222 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2A7222 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7222
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7222#FFFFFF#000000##FFFFFF
##2A72221.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756717
Deuteranopia (green-blind)
#6C6129
Tritanopia (blue-blind)
#1E6E62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7222;
/* rgb */ color: rgb(42, 114, 34);
/* oklch */ color: oklch(48.9% 0.135 141.7);
Tailwind
colors: {
  custom: {
    50: '#6d9b61',
    500: '#2a7222',
    950: '#000000',
  },
}
SCSS
$custom: #2a7222;
$custom-light: #6d9b61;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7222",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 34
  },
  "hsl": {
    "h": 114,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.489,
    "c": 0.13489,
    "h": 141.7
  },
  "luminance": 0.12642
}

Semantic roles & 50–950 ramp

primary
#2A7222
secondary
#9C4BA5
accent
#4ADDCF
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A7222

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

Preview Lab → · Contrast checker → · Palette generator →

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