#2B7229#2B7229

#2B7229 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.129 H 142.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#2B7229
RGBrgb(43, 114, 41)
HSLhsl(118, 47%, 30%)
HSVhsv(118, 64%, 45%)
CMYKcmyk(62.3%, 0%, 64%, 55.3%)
CIE-LABlab(42.32, -37.75, 33.19)
CIE-LCHlch(42.32, 50.26, 138.67°)
OKLaboklab(49.02% -0.1027 0.0777)
OKLCHoklch(49.02% 0.129 142.9)
XYZxyz(7.4134, 12.7076, 4.1595)
Luminance0.1271 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7229 #702972
analogous
#4F7229 #2B7229 #29724B
triadic
#2B7229 #292B72 #72292B
tetradic
#2B7229 #294F72 #702972 #724B29
square
#2B7229 #294F72 #702972 #724B29
split-complementary
#2B7229 #4B2972 #72294F
monochromatic
#091809 #1A4519 #2B7229 #3C9F39 #57C154

Accessibility & contrast

On white

5.93
#2B7229 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2B7229 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7229
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7229#FFFFFF#000000##FFFFFF
##2B72291.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746821
Deuteranopia (green-blind)
#6C622F
Tritanopia (blue-blind)
#1F6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2b7229;
/* rgb */ color: rgb(43, 114, 41);
/* oklch */ color: oklch(49.0% 0.129 142.9);
Tailwind
colors: {
  custom: {
    50: '#6d9b66',
    500: '#2b7229',
    950: '#000000',
  },
}
SCSS
$custom: #2b7229;
$custom-light: #6d9b66;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7229",
  "rgb": {
    "r": 43,
    "g": 114,
    "b": 41
  },
  "hsl": {
    "h": 118.356,
    "s": 47.097,
    "l": 30.392
  },
  "oklch": {
    "l": 0.49015,
    "c": 0.12876,
    "h": 142.9
  },
  "luminance": 0.12708
}

Semantic roles & 50–950 ramp

primary
#2B7229
secondary
#A253A4
accent
#51D7D3
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #2B7229

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

Preview Lab → · Contrast checker → · Palette generator →

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