#2A7B22#2A7B22

#2A7B22 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.147 H 141.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2A7B22
RGBrgb(42, 123, 34)
HSLhsl(115, 57%, 31%)
HSVhsv(115, 72%, 48%)
CMYKcmyk(65.9%, 0%, 72.4%, 51.8%)
CIE-LABlab(45.32, -42.26, 39.65)
CIE-LCHlch(45.32, 57.95, 136.82°)
OKLaboklab(51.47% -0.1152 0.0906)
OKLCHoklch(51.47% 0.147 141.8)
XYZxyz(8.3261, 14.7728, 3.9257)
Luminance0.1477 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B22 #73227B
analogous
#567B22 #2A7B22 #227B46
triadic
#2A7B22 #222A7B #7B222A
tetradic
#2A7B22 #22567B #73227B #7B4622
square
#2A7B22 #22567B #73227B #7B4622
split-complementary
#2A7B22 #46227B #7B2256
monochromatic
#091B07 #1A4B15 #2A7B22 #3AAB2F #56CD4A

Accessibility & contrast

On white

5.31
#2A7B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2A7B22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7B22
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7B22#FFFFFF#000000##FFFFFF
##2A7B221.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F14
Deuteranopia (green-blind)
#74692B
Tritanopia (blue-blind)
#1B7769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7b22;
/* rgb */ color: rgb(42, 123, 34);
/* oklch */ color: oklch(51.5% 0.147 141.8);
Tailwind
colors: {
  custom: {
    50: '#6fa262',
    500: '#2a7b22',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b22;
$custom-light: #6fa262;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b22",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 114.607,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51466,
    "c": 0.14654,
    "h": 141.8
  },
  "luminance": 0.14774
}

Semantic roles & 50–950 ramp

primary
#2A7B22
secondary
#A54BAE
accent
#48E0D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7B22

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

Preview Lab → · Contrast checker → · Palette generator →

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