#2A7E22#2A7E22

#2A7E22 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.150 H 141.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#2A7E22
RGBrgb(42, 126, 34)
HSLhsl(115, 58%, 31%)
HSVhsv(115, 73%, 49%)
CMYKcmyk(66.7%, 0%, 73%, 50.6%)
CIE-LABlab(46.35, -43.38, 40.73)
CIE-LCHlch(46.35, 59.50, 136.80°)
OKLaboklab(52.32% -0.1182 0.0928)
OKLCHoklch(52.32% 0.15 141.9)
XYZxyz(8.7040, 15.5286, 4.0517)
Luminance0.1553 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E22 #76227E
analogous
#587E22 #2A7E22 #227E48
triadic
#2A7E22 #222A7E #7E222A
tetradic
#2A7E22 #22587E #76227E #7E4822
square
#2A7E22 #22587E #76227E #7E4822
split-complementary
#2A7E22 #48227E #7E2258
monochromatic
#0A1E08 #1A4E15 #2A7E22 #3AAE2F #57CF4C

Accessibility & contrast

On white

5.11
#2A7E22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2A7E22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E22
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E22#FFFFFF#000000##FFFFFF
##2A7E221.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817213
Deuteranopia (green-blind)
#776B2B
Tritanopia (blue-blind)
#1A7A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e22;
/* rgb */ color: rgb(42, 126, 34);
/* oklch */ color: oklch(52.3% 0.150 141.9);
Tailwind
colors: {
  custom: {
    50: '#6fa463',
    500: '#2a7e22',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e22;
$custom-light: #6fa463;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e22",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 114.783,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52317,
    "c": 0.15032,
    "h": 141.9
  },
  "luminance": 0.15529
}

Semantic roles & 50–950 ramp

primary
#2A7E22
secondary
#A84BB1
accent
#47E1D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7E22

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

Preview Lab → · Contrast checker → · Palette generator →

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