#2B7612#2B7612

#2B7612 is a mid, vivid green. Relative luminance 0.135; OKLCH L 50.0% C 0.149 H 139.6°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#2B7612
RGBrgb(43, 118, 18)
HSLhsl(105, 74%, 27%)
HSVhsv(105, 85%, 46%)
CMYKcmyk(63.6%, 0%, 84.7%, 53.7%)
CIE-LABlab(43.53, -41.33, 43.73)
CIE-LCHlch(43.53, 60.17, 133.38°)
OKLaboklab(49.96% -0.1137 0.0967)
OKLCHoklch(49.96% 0.149 139.6)
XYZxyz(7.5835, 13.5134, 2.7809)
Luminance0.1351 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7612 #5D1276
analogous
#5D7612 #2B7612 #12762B
triadic
#2B7612 #122B76 #76122B
tetradic
#2B7612 #125D76 #5D1276 #762B12
square
#2B7612 #125D76 #5D1276 #762B12
split-complementary
#2B7612 #2B1276 #76125D
monochromatic
#0A1B04 #18410A #2B7612 #3EAB1A #53DE25

Accessibility & contrast

On white

5.67
#2B7612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#2B7612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7612
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7612#FFFFFF#000000##FFFFFF
##2B76121.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#70651F
Tritanopia (blue-blind)
#217264
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2b7612;
/* rgb */ color: rgb(43, 118, 18);
/* oklch */ color: oklch(50.0% 0.149 139.6);
Tailwind
colors: {
  custom: {
    50: '#6f9e5a',
    500: '#2b7612',
    950: '#000000',
  },
}
SCSS
$custom: #2b7612;
$custom-light: #6f9e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7612",
  "rgb": {
    "r": 43,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 105,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.49957,
    "c": 0.14927,
    "h": 139.6
  },
  "luminance": 0.13514
}

Semantic roles & 50–950 ramp

primary
#2B7612
secondary
#8F37AD
accent
#38F0C2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7612

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

Preview Lab → · Contrast checker → · Palette generator →

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