#2A7227#2A7227

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

Color values

HEX#2A7227
RGBrgb(42, 114, 39)
HSLhsl(118, 49%, 30%)
HSVhsv(118, 66%, 45%)
CMYKcmyk(63.2%, 0%, 65.8%, 55.3%)
CIE-LABlab(42.27, -38.24, 34.09)
CIE-LCHlch(42.27, 51.23, 138.28°)
OKLaboklab(48.96% -0.104 0.0794)
OKLCHoklch(48.96% 0.131 142.6)
XYZxyz(7.3380, 12.6727, 3.9784)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7227 #6F2772
analogous
#507227 #2A7227 #277249
triadic
#2A7227 #272A72 #72272A
tetradic
#2A7227 #275072 #6F2772 #724927
square
#2A7227 #275072 #6F2772 #724927
split-complementary
#2A7227 #492772 #722750
monochromatic
#081708 #194417 #2A7227 #3BA037 #55C350

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7227#FFFFFF#000000##FFFFFF
##2A72271.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)
#75671E
Deuteranopia (green-blind)
#6C612D
Tritanopia (blue-blind)
#1D6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7227;
/* rgb */ color: rgb(42, 114, 39);
/* oklch */ color: oklch(49.0% 0.131 142.6);
Tailwind
colors: {
  custom: {
    50: '#6d9b64',
    500: '#2a7227',
    950: '#000000',
  },
}
SCSS
$custom: #2a7227;
$custom-light: #6d9b64;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7227",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 39
  },
  "hsl": {
    "h": 117.6,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.48955,
    "c": 0.1309,
    "h": 142.6
  },
  "luminance": 0.12673
}

Semantic roles & 50–950 ramp

primary
#2A7227
secondary
#A150A4
accent
#4FD9D3
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #2A7227

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

Preview Lab → · Contrast checker → · Palette generator →

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