#2A7226#2A7226

#2A7226 is a mid, vivid green. Relative luminance 0.127; OKLCH L 48.9% C 0.132 H 142.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#2A7226
RGBrgb(42, 114, 38)
HSLhsl(117, 50%, 30%)
HSVhsv(117, 67%, 45%)
CMYKcmyk(63.2%, 0%, 66.7%, 55.3%)
CIE-LABlab(42.26, -38.36, 34.56)
CIE-LCHlch(42.26, 51.63, 137.98°)
OKLaboklab(48.94% -0.1044 0.0803)
OKLCHoklch(48.94% 0.132 142.4)
XYZxyz(7.3216, 12.6661, 3.8923)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7226 #6E2672
analogous
#507226 #2A7226 #267248
triadic
#2A7226 #262A72 #72262A
tetradic
#2A7226 #265072 #6E2672 #724826
square
#2A7226 #265072 #6E2672 #724826
split-complementary
#2A7226 #482672 #722650
monochromatic
#081708 #194417 #2A7226 #3BA035 #55C44E

Accessibility & contrast

On white

5.94
#2A7226 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A7226
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7226#FFFFFF#000000##FFFFFF
##2A72261.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75671D
Deuteranopia (green-blind)
#6C612D
Tritanopia (blue-blind)
#1E6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7226;
/* rgb */ color: rgb(42, 114, 38);
/* oklch */ color: oklch(48.9% 0.132 142.4);
Tailwind
colors: {
  custom: {
    50: '#6d9b64',
    500: '#2a7226',
    950: '#000000',
  },
}
SCSS
$custom: #2a7226;
$custom-light: #6d9b64;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7226",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 38
  },
  "hsl": {
    "h": 116.842,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.48943,
    "c": 0.13173,
    "h": 142.4
  },
  "luminance": 0.12667
}

Semantic roles & 50–950 ramp

primary
#2A7226
secondary
#A04FA5
accent
#4EDAD2
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080E05
muted
#7B7E7A

Preview Lab

Preview with #2A7226

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

Preview Lab → · Contrast checker → · Palette generator →

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