#2B7118#2B7118

#2B7118 is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.6% C 0.140 H 140.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#2B7118
RGBrgb(43, 113, 24)
HSLhsl(107, 65%, 27%)
HSVhsv(107, 79%, 44%)
CMYKcmyk(61.9%, 0%, 78.8%, 55.7%)
CIE-LABlab(41.83, -39.02, 40.09)
CIE-LCHlch(41.83, 55.95, 134.22°)
OKLaboklab(48.56% -0.1071 0.09)
OKLCHoklch(48.56% 0.14 140)
XYZxyz(7.0659, 12.3892, 2.8830)
Luminance0.1239 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7118 #5E1871
analogous
#587118 #2B7118 #187132
triadic
#2B7118 #182B71 #71182B
tetradic
#2B7118 #185871 #5E1871 #713218
square
#2B7118 #185871 #5E1871 #713218
split-complementary
#2B7118 #321871 #711858
monochromatic
#0A1905 #183F0D #2B7118 #3EA323 #53D330

Accessibility & contrast

On white

6.04
#2B7118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#2B7118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7118
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7118#FFFFFF#000000##FFFFFF
##2B71181.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746605
Deuteranopia (green-blind)
#6C6122
Tritanopia (blue-blind)
#226D60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2b7118;
/* rgb */ color: rgb(43, 113, 24);
/* oklch */ color: oklch(48.6% 0.140 140.0);
Tailwind
colors: {
  custom: {
    50: '#6e9a5c',
    500: '#2b7118',
    950: '#000000',
  },
}
SCSS
$custom: #2b7118;
$custom-light: #6e9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7118",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 24
  },
  "hsl": {
    "h": 107.191,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48563,
    "c": 0.13994,
    "h": 140
  },
  "luminance": 0.1239
}

Semantic roles & 50–950 ramp

primary
#2B7118
secondary
#903EA6
accent
#40E8C4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7118

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

Preview Lab → · Contrast checker → · Palette generator →

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