#2B7214#2B7214

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

Color values

HEX#2B7214
RGBrgb(43, 114, 20)
HSLhsl(105, 70%, 26%)
HSVhsv(105, 82%, 45%)
CMYKcmyk(62.3%, 0%, 82.5%, 55.3%)
CIE-LABlab(42.15, -39.69, 41.82)
CIE-LCHlch(42.15, 57.65, 133.50°)
OKLaboklab(48.82% -0.1092 0.093)
OKLCHoklch(48.82% 0.143 139.6)
XYZxyz(7.1395, 12.5981, 2.7171)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7214 #5B1472
analogous
#5A7214 #2B7214 #14722C
triadic
#2B7214 #142B72 #72142B
tetradic
#2B7214 #145A72 #5B1472 #722C14
square
#2B7214 #145A72 #5B1472 #722C14
split-complementary
#2B7214 #2C1472 #72145A
monochromatic
#0A1A05 #173E0B #2B7214 #3FA61D #53D927

Accessibility & contrast

On white

5.97
#2B7214 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2B7214
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7214#FFFFFF#000000##FFFFFF
##2B72141.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#6D611F
Tritanopia (blue-blind)
#226E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2b7214;
/* rgb */ color: rgb(43, 114, 20);
/* oklch */ color: oklch(48.8% 0.143 139.6);
Tailwind
colors: {
  custom: {
    50: '#6e9b5a',
    500: '#2b7214',
    950: '#000000',
  },
}
SCSS
$custom: #2b7214;
$custom-light: #6e9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7214",
  "rgb": {
    "r": 43,
    "g": 114,
    "b": 20
  },
  "hsl": {
    "h": 105.319,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.48822,
    "c": 0.14342,
    "h": 139.6
  },
  "luminance": 0.12599
}

Semantic roles & 50–950 ramp

primary
#2B7214
secondary
#8D39A8
accent
#3BEDC1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7214

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

Preview Lab → · Contrast checker → · Palette generator →

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