#2B7012#2B7012

#2B7012 is a mid, vivid green. Relative luminance 0.121; OKLCH L 48.2% C 0.142 H 139.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#2B7012
RGBrgb(43, 112, 18)
HSLhsl(104, 72%, 25%)
HSVhsv(104, 84%, 44%)
CMYKcmyk(61.6%, 0%, 83.9%, 56.1%)
CIE-LABlab(41.45, -39.04, 41.80)
CIE-LCHlch(41.45, 57.20, 133.04°)
OKLaboklab(48.24% -0.1075 0.0927)
OKLCHoklch(48.24% 0.142 139.2)
XYZxyz(6.8993, 12.1450, 2.5528)
Luminance0.1215 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7012 #571270
analogous
#5A7012 #2B7012 #127028
triadic
#2B7012 #122B70 #70122B
tetradic
#2B7012 #125A70 #571270 #702812
square
#2B7012 #125A70 #571270 #702812
split-complementary
#2B7012 #281270 #70125A
monochromatic
#0A1A04 #173B0A #2B7012 #3FA51A #53D923

Accessibility & contrast

On white

6.12
#2B7012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2B7012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7012
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7012#FFFFFF#000000##FFFFFF
##2B70121.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736500
Deuteranopia (green-blind)
#6B601D
Tritanopia (blue-blind)
#236C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2b7012;
/* rgb */ color: rgb(43, 112, 18);
/* oklch */ color: oklch(48.2% 0.142 139.2);
Tailwind
colors: {
  custom: {
    50: '#6e9a59',
    500: '#2b7012',
    950: '#000000',
  },
}
SCSS
$custom: #2b7012;
$custom-light: #6e9a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7012",
  "rgb": {
    "r": 43,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 104.043,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.48235,
    "c": 0.14197,
    "h": 139.2
  },
  "luminance": 0.12146
}

Semantic roles & 50–950 ramp

primary
#2B7012
secondary
#8937A7
accent
#39EFBF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7012

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

Preview Lab → · Contrast checker → · Palette generator →

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