#2B7A22#2B7A22

#2B7A22 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.145 H 141.6°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2B7A22
RGBrgb(43, 122, 34)
HSLhsl(114, 56%, 31%)
HSVhsv(114, 72%, 48%)
CMYKcmyk(64.8%, 0%, 72.1%, 52.2%)
CIE-LABlab(45.01, -41.64, 39.34)
CIE-LCHlch(45.01, 57.28, 136.63°)
OKLaboklab(51.22% -0.1136 0.0899)
OKLCHoklch(51.22% 0.145 141.6)
XYZxyz(8.2441, 14.5474, 3.8865)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7A22 #71227A
analogous
#577A22 #2B7A22 #227A45
triadic
#2B7A22 #222B7A #7A222B
tetradic
#2B7A22 #22577A #71227A #7A4522
square
#2B7A22 #22577A #71227A #7A4522
split-complementary
#2B7A22 #45227A #7A2257
monochromatic
#091A07 #1A4A15 #2B7A22 #3CAA2F #57CD4A

Accessibility & contrast

On white

5.37
#2B7A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2B7A22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7A22
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7A22#FFFFFF#000000##FFFFFF
##2B7A221.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E15
Deuteranopia (green-blind)
#73682A
Tritanopia (blue-blind)
#1D7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2b7a22;
/* rgb */ color: rgb(43, 122, 34);
/* oklch */ color: oklch(51.2% 0.145 141.6);
Tailwind
colors: {
  custom: {
    50: '#6fa162',
    500: '#2b7a22',
    950: '#000000',
  },
}
SCSS
$custom: #2b7a22;
$custom-light: #6fa162;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7a22",
  "rgb": {
    "r": 43,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 113.864,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51215,
    "c": 0.14486,
    "h": 141.6
  },
  "luminance": 0.14548
}

Semantic roles & 50–950 ramp

primary
#2B7A22
secondary
#A34BAD
accent
#48E0D0
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2B7A22

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

Preview Lab → · Contrast checker → · Palette generator →

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