#2B7E21#2B7E21

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

Color values

HEX#2B7E21
RGBrgb(43, 126, 33)
HSLhsl(114, 58%, 31%)
HSVhsv(114, 74%, 49%)
CMYKcmyk(65.9%, 0%, 73.8%, 50.6%)
CIE-LABlab(46.37, -43.23, 41.17)
CIE-LCHlch(46.37, 59.70, 136.40°)
OKLaboklab(52.34% -0.118 0.0936)
OKLCHoklch(52.34% 0.151 141.6)
XYZxyz(8.7312, 15.5442, 3.9788)
Luminance0.1555 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7E21 #74217E
analogous
#597E21 #2B7E21 #217E45
triadic
#2B7E21 #212B7E #7E212B
tetradic
#2B7E21 #21597E #74217E #7E4521
square
#2B7E21 #21597E #74217E #7E4521
split-complementary
#2B7E21 #45217E #7E2159
monochromatic
#0A1D08 #1A4E14 #2B7E21 #3CAE2E #58D04A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B7E21#FFFFFF#000000##FFFFFF
##2B7E211.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)
#817212
Deuteranopia (green-blind)
#776B2A
Tritanopia (blue-blind)
#1C7A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2b7e21;
/* rgb */ color: rgb(43, 126, 33);
/* oklch */ color: oklch(52.3% 0.151 141.6);
Tailwind
colors: {
  custom: {
    50: '#70a462',
    500: '#2b7e21',
    950: '#000000',
  },
}
SCSS
$custom: #2b7e21;
$custom-light: #70a462;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7e21",
  "rgb": {
    "r": 43,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 113.548,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5234,
    "c": 0.15059,
    "h": 141.6
  },
  "luminance": 0.15545
}

Semantic roles & 50–950 ramp

primary
#2B7E21
secondary
#A64AB1
accent
#46E2D1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2B7E21

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

Preview Lab → · Contrast checker → · Palette generator →

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