#2A7221#2A7221

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

Color values

HEX#2A7221
RGBrgb(42, 114, 33)
HSLhsl(113, 55%, 29%)
HSVhsv(113, 71%, 45%)
CMYKcmyk(63.2%, 0%, 71.1%, 55.3%)
CIE-LABlab(42.21, -38.89, 36.80)
CIE-LCHlch(42.21, 53.54, 136.59°)
OKLaboklab(48.89% -0.1062 0.0844)
OKLCHoklch(48.89% 0.136 141.5)
XYZxyz(7.2463, 12.6360, 3.4957)
Luminance0.1264 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7221 #692172
analogous
#537221 #2A7221 #217241
triadic
#2A7221 #212A72 #72212A
tetradic
#2A7221 #215372 #692172 #724121
square
#2A7221 #215372 #692172 #724121
split-complementary
#2A7221 #412172 #722153
monochromatic
#091807 #194313 #2A7221 #3BA12F #53C944

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7221#FFFFFF#000000##FFFFFF
##2A72211.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)
#756716
Deuteranopia (green-blind)
#6C6128
Tritanopia (blue-blind)
#1F6E62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7221;
/* rgb */ color: rgb(42, 114, 33);
/* oklch */ color: oklch(48.9% 0.136 141.5);
Tailwind
colors: {
  custom: {
    50: '#6d9b61',
    500: '#2a7221',
    950: '#000000',
  },
}
SCSS
$custom: #2a7221;
$custom-light: #6d9b61;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7221",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 33
  },
  "hsl": {
    "h": 113.333,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4889,
    "c": 0.13564,
    "h": 141.5
  },
  "luminance": 0.12637
}

Semantic roles & 50–950 ramp

primary
#2A7221
secondary
#9B49A5
accent
#49DECE
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A7221

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

Preview Lab → · Contrast checker → · Palette generator →

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