#2B7218#2B7218

#2B7218 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.141 H 140.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#2B7218
RGBrgb(43, 114, 24)
HSLhsl(107, 65%, 27%)
HSVhsv(107, 79%, 45%)
CMYKcmyk(62.3%, 0%, 78.9%, 55.3%)
CIE-LABlab(42.17, -39.41, 40.43)
CIE-LCHlch(42.17, 56.46, 134.26°)
OKLaboklab(48.85% -0.1082 0.0908)
OKLCHoklch(48.85% 0.141 140)
XYZxyz(7.1781, 12.6135, 2.9204)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7218 #5F1872
analogous
#587218 #2B7218 #187232
triadic
#2B7218 #182B72 #72182B
tetradic
#2B7218 #185872 #5F1872 #723218
square
#2B7218 #185872 #5F1872 #723218
split-complementary
#2B7218 #321872 #721858
monochromatic
#0A1905 #183F0D #2B7218 #3EA523 #53D431

Accessibility & contrast

On white

5.96
#2B7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2B7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7218
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7218#FFFFFF#000000##FFFFFF
##2B72181.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#6D6122
Tritanopia (blue-blind)
#226E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2b7218;
/* rgb */ color: rgb(43, 114, 24);
/* oklch */ color: oklch(48.8% 0.141 140.0);
Tailwind
colors: {
  custom: {
    50: '#6e9b5c',
    500: '#2b7218',
    950: '#000000',
  },
}
SCSS
$custom: #2b7218;
$custom-light: #6e9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7218",
  "rgb": {
    "r": 43,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 107.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.48849,
    "c": 0.1412,
    "h": 140
  },
  "luminance": 0.12614
}

Semantic roles & 50–950 ramp

primary
#2B7218
secondary
#913EA7
accent
#40E8C5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7218

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

Preview Lab → · Contrast checker → · Palette generator →

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