#2A7D22#2A7D22

#2A7D22 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.149 H 141.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2A7D22
RGBrgb(42, 125, 34)
HSLhsl(115, 57%, 31%)
HSVhsv(115, 73%, 49%)
CMYKcmyk(66.4%, 0%, 72.8%, 51%)
CIE-LABlab(46.01, -43.01, 40.37)
CIE-LCHlch(46.01, 58.99, 136.81°)
OKLaboklab(52.03% -0.1172 0.0921)
OKLCHoklch(52.03% 0.149 141.9)
XYZxyz(8.5767, 15.2741, 4.0093)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D22 #75227D
analogous
#577D22 #2A7D22 #227D47
triadic
#2A7D22 #222A7D #7D222A
tetradic
#2A7D22 #22577D #75227D #7D4722
square
#2A7D22 #22577D #75227D #7D4722
split-complementary
#2A7D22 #47227D #7D2257
monochromatic
#0A1D08 #1A4D15 #2A7D22 #3AAD2F #57CE4B

Accessibility & contrast

On white

5.18
#2A7D22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2A7D22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D22
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D22#FFFFFF#000000##FFFFFF
##2A7D221.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807114
Deuteranopia (green-blind)
#766A2B
Tritanopia (blue-blind)
#1A796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d22;
/* rgb */ color: rgb(42, 125, 34);
/* oklch */ color: oklch(52.0% 0.149 141.9);
Tailwind
colors: {
  custom: {
    50: '#6fa363',
    500: '#2a7d22',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d22;
$custom-light: #6fa363;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d22",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 114.725,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52033,
    "c": 0.14906,
    "h": 141.9
  },
  "luminance": 0.15275
}

Semantic roles & 50–950 ramp

primary
#2A7D22
secondary
#A74BB0
accent
#47E0D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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