#2B7211#2B7211

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

Color values

HEX#2B7211
RGBrgb(43, 114, 17)
HSLhsl(104, 74%, 26%)
HSVhsv(104, 85%, 45%)
CMYKcmyk(62.3%, 0%, 85.1%, 55.3%)
CIE-LABlab(42.14, -39.87, 42.75)
CIE-LCHlch(42.14, 58.46, 133.00°)
OKLaboklab(48.81% -0.1098 0.0945)
OKLCHoklch(48.81% 0.145 139.3)
XYZxyz(7.1145, 12.5880, 2.5850)
Luminance0.1259 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7211 #581172
analogous
#5B7211 #2B7211 #117228
triadic
#2B7211 #112B72 #72112B
tetradic
#2B7211 #115B72 #581172 #722811
square
#2B7211 #115B72 #581172 #722811
split-complementary
#2B7211 #281172 #72115B
monochromatic
#0A1B04 #173D09 #2B7211 #3FA719 #53DD21

Accessibility & contrast

On white

5.97
#2B7211 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2B7211
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7211#FFFFFF#000000##FFFFFF
##2B72111.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6D611D
Tritanopia (blue-blind)
#236E60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2b7211;
/* rgb */ color: rgb(43, 114, 17);
/* oklch */ color: oklch(48.8% 0.145 139.3);
Tailwind
colors: {
  custom: {
    50: '#6e9b59',
    500: '#2b7211',
    950: '#000000',
  },
}
SCSS
$custom: #2b7211;
$custom-light: #6e9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7211",
  "rgb": {
    "r": 43,
    "g": 114,
    "b": 17
  },
  "hsl": {
    "h": 103.918,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.48805,
    "c": 0.14489,
    "h": 139.3
  },
  "luminance": 0.12589
}

Semantic roles & 50–950 ramp

primary
#2B7211
secondary
#8A36A9
accent
#37F1BF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7211

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

Preview Lab → · Contrast checker → · Palette generator →

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