#2A7922#2A7922

#2A7922 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.144 H 141.8°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#2A7922
RGBrgb(42, 121, 34)
HSLhsl(114, 56%, 30%)
HSVhsv(114, 72%, 47%)
CMYKcmyk(65.3%, 0%, 71.9%, 52.5%)
CIE-LABlab(44.63, -41.50, 38.93)
CIE-LCHlch(44.63, 56.90, 136.83°)
OKLaboklab(50.9% -0.1132 0.0891)
OKLCHoklch(50.9% 0.144 141.8)
XYZxyz(8.0805, 14.2817, 3.8439)
Luminance0.1428 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7922 #712279
analogous
#557922 #2A7922 #227945
triadic
#2A7922 #222A79 #79222A
tetradic
#2A7922 #225579 #712279 #794522
square
#2A7922 #225579 #712279 #794522
split-complementary
#2A7922 #452279 #792255
monochromatic
#091907 #194915 #2A7922 #3BA92F #55CC49

Accessibility & contrast

On white

5.45
#2A7922 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#2A7922 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7922
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7922#FFFFFF#000000##FFFFFF
##2A79221.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E15
Deuteranopia (green-blind)
#72672A
Tritanopia (blue-blind)
#1C7568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7922;
/* rgb */ color: rgb(42, 121, 34);
/* oklch */ color: oklch(50.9% 0.144 141.8);
Tailwind
colors: {
  custom: {
    50: '#6ea062',
    500: '#2a7922',
    950: '#000000',
  },
}
SCSS
$custom: #2a7922;
$custom-light: #6ea062;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7922",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 34
  },
  "hsl": {
    "h": 114.483,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.50897,
    "c": 0.144,
    "h": 141.8
  },
  "luminance": 0.14282
}

Semantic roles & 50–950 ramp

primary
#2A7922
secondary
#A34BAC
accent
#48DFD2
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F05
muted
#7B7E7A

Preview Lab

Preview with #2A7922

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

Preview Lab → · Contrast checker → · Palette generator →

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