#2B7D21#2B7D21

#2B7D21 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.149 H 141.6°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2B7D21
RGBrgb(43, 125, 33)
HSLhsl(113, 58%, 31%)
HSVhsv(113, 74%, 49%)
CMYKcmyk(65.6%, 0%, 73.6%, 51%)
CIE-LABlab(46.03, -42.86, 40.81)
CIE-LCHlch(46.03, 59.19, 136.40°)
OKLaboklab(52.06% -0.117 0.0929)
OKLCHoklch(52.06% 0.149 141.6)
XYZxyz(8.6039, 15.2898, 3.9364)
Luminance0.1529 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7D21 #73217D
analogous
#597D21 #2B7D21 #217D45
triadic
#2B7D21 #212B7D #7D212B
tetradic
#2B7D21 #21597D #73217D #7D4521
square
#2B7D21 #21597D #73217D #7D4521
split-complementary
#2B7D21 #45217D #7D2159
monochromatic
#0A1C07 #1A4D14 #2B7D21 #3CAD2E #58CF49

Accessibility & contrast

On white

5.17
#2B7D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2B7D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7D21
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7D21#FFFFFF#000000##FFFFFF
##2B7D211.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807112
Deuteranopia (green-blind)
#766A2A
Tritanopia (blue-blind)
#1C796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2b7d21;
/* rgb */ color: rgb(43, 125, 33);
/* oklch */ color: oklch(52.1% 0.149 141.6);
Tailwind
colors: {
  custom: {
    50: '#70a362',
    500: '#2b7d21',
    950: '#000000',
  },
}
SCSS
$custom: #2b7d21;
$custom-light: #70a362;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7d21",
  "rgb": {
    "r": 43,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 113.478,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52056,
    "c": 0.14934,
    "h": 141.6
  },
  "luminance": 0.15291
}

Semantic roles & 50–950 ramp

primary
#2B7D21
secondary
#A54AB0
accent
#46E1D1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2B7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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