#2B6512#2B6512

#2B6512 is a mid, vivid green. Relative luminance 0.099; OKLCH L 45.1% C 0.128 H 138.4°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2B6512
RGBrgb(43, 101, 18)
HSLhsl(102, 70%, 23%)
HSVhsv(102, 82%, 40%)
CMYKcmyk(57.4%, 0%, 82.2%, 60.4%)
CIE-LABlab(37.60, -34.64, 38.16)
CIE-LCHlch(37.60, 51.54, 132.23°)
OKLaboklab(45.06% -0.0957 0.0851)
OKLCHoklch(45.06% 0.128 138.4)
XYZxyz(5.7589, 9.8642, 2.1727)
Luminance0.0987 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B6512 #4C1265
analogous
#546512 #2B6512 #126522
triadic
#2B6512 #122B65 #65122B
tetradic
#2B6512 #125465 #4C1265 #652212
square
#2B6512 #125465 #4C1265 #652212
split-complementary
#2B6512 #221265 #651254
monochromatic
#0B1A05 #153109 #2B6512 #41991B #57CD25

Accessibility & contrast

On white

7.06
#2B6512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2B6512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B6512
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B6512#FFFFFF#000000##FFFFFF
##2B65121.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B00
Deuteranopia (green-blind)
#61571B
Tritanopia (blue-blind)
#266155
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2b6512;
/* rgb */ color: rgb(43, 101, 18);
/* oklch */ color: oklch(45.1% 0.128 138.4);
Tailwind
colors: {
  custom: {
    50: '#6c9157',
    500: '#2b6512',
    950: '#000000',
  },
}
SCSS
$custom: #2b6512;
$custom-light: #6c9157;
$custom-dark: #000000;
JSON
{
  "hex": "#2b6512",
  "rgb": {
    "r": 43,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 101.928,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45058,
    "c": 0.12807,
    "h": 138.4
  },
  "luminance": 0.09865
}

Semantic roles & 50–950 ramp

primary
#2B6512
secondary
#7E369D
accent
#3BEDB7
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D03
muted
#7A7E78

Preview Lab

Preview with #2B6512

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

Preview Lab → · Contrast checker → · Palette generator →

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