#2B7311#2B7311

#2B7311 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.146 H 139.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2B7311
RGBrgb(43, 115, 17)
HSLhsl(104, 74%, 26%)
HSVhsv(104, 85%, 45%)
CMYKcmyk(62.6%, 0%, 85.2%, 54.9%)
CIE-LABlab(42.48, -40.25, 43.07)
CIE-LCHlch(42.48, 58.95, 133.06°)
OKLaboklab(49.09% -0.1108 0.0952)
OKLCHoklch(49.09% 0.146 139.3)
XYZxyz(7.2279, 12.8149, 2.6228)
Luminance0.1282 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7311 #591173
analogous
#5C7311 #2B7311 #117328
triadic
#2B7311 #112B73 #73112B
tetradic
#2B7311 #115C73 #591173 #732811
square
#2B7311 #115C73 #591173 #732811
split-complementary
#2B7311 #281173 #73115C
monochromatic
#0A1B04 #173E09 #2B7311 #3FA819 #53DE21

Accessibility & contrast

On white

5.89
#2B7311 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2B7311 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7311
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7311#FFFFFF#000000##FFFFFF
##2B73111.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6E621D
Tritanopia (blue-blind)
#226F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2b7311;
/* rgb */ color: rgb(43, 115, 17);
/* oklch */ color: oklch(49.1% 0.146 139.3);
Tailwind
colors: {
  custom: {
    50: '#6e9c59',
    500: '#2b7311',
    950: '#000000',
  },
}
SCSS
$custom: #2b7311;
$custom-light: #6e9c59;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7311",
  "rgb": {
    "r": 43,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 104.082,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.49092,
    "c": 0.1461,
    "h": 139.3
  },
  "luminance": 0.12816
}

Semantic roles & 50–950 ramp

primary
#2B7311
secondary
#8B36AA
accent
#37F1C0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7311

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

Preview Lab → · Contrast checker → · Palette generator →

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