#2B6812#2B6812

#2B6812 is a mid, vivid green. Relative luminance 0.105; OKLCH L 45.9% C 0.132 H 138.6°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#2B6812
RGBrgb(43, 104, 18)
HSLhsl(103, 70%, 24%)
HSVhsv(103, 83%, 41%)
CMYKcmyk(58.7%, 0%, 82.7%, 59.2%)
CIE-LABlab(38.65, -35.87, 39.17)
CIE-LCHlch(38.65, 53.11, 132.48°)
OKLaboklab(45.93% -0.099 0.0872)
OKLCHoklch(45.93% 0.132 138.6)
XYZxyz(6.0555, 10.4574, 2.2715)
Luminance0.1046 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B6812 #4F1268
analogous
#566812 #2B6812 #126824
triadic
#2B6812 #122B68 #68122B
tetradic
#2B6812 #125668 #4F1268 #682412
square
#2B6812 #125668 #4F1268 #682412
split-complementary
#2B6812 #241268 #681256
monochromatic
#0B1A05 #153409 #2B6812 #419C1B #56D024

Accessibility & contrast

On white

6.79
#2B6812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2B6812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B6812
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B6812#FFFFFF#000000##FFFFFF
##2B68121.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E00
Deuteranopia (green-blind)
#64591C
Tritanopia (blue-blind)
#256458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2b6812;
/* rgb */ color: rgb(43, 104, 18);
/* oklch */ color: oklch(45.9% 0.132 138.6);
Tailwind
colors: {
  custom: {
    50: '#6c9458',
    500: '#2b6812',
    950: '#000000',
  },
}
SCSS
$custom: #2b6812;
$custom-light: #6c9458;
$custom-dark: #000000;
JSON
{
  "hex": "#2b6812",
  "rgb": {
    "r": 43,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 102.558,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.45927,
    "c": 0.13192,
    "h": 138.6
  },
  "luminance": 0.10458
}

Semantic roles & 50–950 ramp

primary
#2B6812
secondary
#8136A0
accent
#3BEDB9
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2B6812

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

Preview Lab → · Contrast checker → · Palette generator →

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