#2A7F22#2A7F22

#2A7F22 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.152 H 141.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2A7F22
RGBrgb(42, 127, 34)
HSLhsl(115, 58%, 32%)
HSVhsv(115, 73%, 50%)
CMYKcmyk(66.9%, 0%, 73.2%, 50.2%)
CIE-LABlab(46.69, -43.75, 41.08)
CIE-LCHlch(46.69, 60.02, 136.80°)
OKLaboklab(52.6% -0.1192 0.0935)
OKLCHoklch(52.6% 0.152 141.9)
XYZxyz(8.8325, 15.7856, 4.0945)
Luminance0.1579 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F22 #77227F
analogous
#597F22 #2A7F22 #227F49
triadic
#2A7F22 #222A7F #7F222A
tetradic
#2A7F22 #22597F #77227F #7F4922
square
#2A7F22 #22597F #77227F #7F4922
split-complementary
#2A7F22 #49227F #7F2259
monochromatic
#0A1E08 #1A4F15 #2A7F22 #3AAF2F #58CF4C

Accessibility & contrast

On white

5.05
#2A7F22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2A7F22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F22
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F22#FFFFFF#000000##FFFFFF
##2A7F221.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827313
Deuteranopia (green-blind)
#786C2B
Tritanopia (blue-blind)
#197B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7f22;
/* rgb */ color: rgb(42, 127, 34);
/* oklch */ color: oklch(52.6% 0.152 141.9);
Tailwind
colors: {
  custom: {
    50: '#70a563',
    500: '#2a7f22',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f22;
$custom-light: #70a563;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f22",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 114.839,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.526,
    "c": 0.15157,
    "h": 141.9
  },
  "luminance": 0.15786
}

Semantic roles & 50–950 ramp

primary
#2A7F22
secondary
#A94BB2
accent
#47E1D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7F22

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

Preview Lab → · Contrast checker → · Palette generator →

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