#2B7212#2B7212

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

Color values

HEX#2B7212
RGBrgb(43, 114, 18)
HSLhsl(104, 73%, 26%)
HSVhsv(104, 84%, 45%)
CMYKcmyk(62.3%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.14, -39.81, 42.45)
CIE-LCHlch(42.14, 58.19, 133.16°)
OKLaboklab(48.81% -0.1096 0.0941)
OKLCHoklch(48.81% 0.144 139.4)
XYZxyz(7.1225, 12.5912, 2.6272)
Luminance0.1259 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7212 #591272
analogous
#5B7212 #2B7212 #127229
triadic
#2B7212 #122B72 #72122B
tetradic
#2B7212 #125B72 #591272 #722912
square
#2B7212 #125B72 #591272 #722912
split-complementary
#2B7212 #291272 #72125B
monochromatic
#0A1A04 #173D0A #2B7212 #3FA71A #53DC23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B7212#FFFFFF#000000##FFFFFF
##2B72121.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)
#6D611E
Tritanopia (blue-blind)
#226E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2b7212;
/* rgb */ color: rgb(43, 114, 18);
/* oklch */ color: oklch(48.8% 0.144 139.4);
Tailwind
colors: {
  custom: {
    50: '#6e9b59',
    500: '#2b7212',
    950: '#000000',
  },
}
SCSS
$custom: #2b7212;
$custom-light: #6e9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7212",
  "rgb": {
    "r": 43,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 104.375,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.4881,
    "c": 0.14442,
    "h": 139.4
  },
  "luminance": 0.12592
}

Semantic roles & 50–950 ramp

primary
#2B7212
secondary
#8B37A9
accent
#38EFC0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7212

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

Preview Lab → · Contrast checker → · Palette generator →

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