#2B7216#2B7216

#2B7216 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.142 H 139.8°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#2B7216
RGBrgb(43, 114, 22)
HSLhsl(106, 68%, 27%)
HSVhsv(106, 81%, 45%)
CMYKcmyk(62.3%, 0%, 80.7%, 55.3%)
CIE-LABlab(42.16, -39.55, 41.14)
CIE-LCHlch(42.16, 57.07, 133.87°)
OKLaboklab(48.84% -0.1087 0.0919)
OKLCHoklch(48.84% 0.142 139.8)
XYZxyz(7.1581, 12.6055, 2.8148)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7216 #5D1672
analogous
#597216 #2B7216 #16722F
triadic
#2B7216 #162B72 #72162B
tetradic
#2B7216 #165972 #5D1672 #722F16
square
#2B7216 #165972 #5D1672 #722F16
split-complementary
#2B7216 #2F1672 #721659
monochromatic
#0A1A05 #183F0C #2B7216 #3EA520 #53D62C

Accessibility & contrast

On white

5.96
#2B7216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2B7216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7216
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7216#FFFFFF#000000##FFFFFF
##2B72161.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756701
Deuteranopia (green-blind)
#6D6120
Tritanopia (blue-blind)
#226E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2b7216;
/* rgb */ color: rgb(43, 114, 22);
/* oklch */ color: oklch(48.8% 0.142 139.8);
Tailwind
colors: {
  custom: {
    50: '#6e9b5b',
    500: '#2b7216',
    950: '#000000',
  },
}
SCSS
$custom: #2b7216;
$custom-light: #6e9b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7216",
  "rgb": {
    "r": 43,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 106.304,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48835,
    "c": 0.14235,
    "h": 139.8
  },
  "luminance": 0.12606
}

Semantic roles & 50–950 ramp

primary
#2B7216
secondary
#8F3CA8
accent
#3DEBC3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7216

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

Preview Lab → · Contrast checker → · Palette generator →

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