#2B7213#2B7213

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

Color values

HEX#2B7213
RGBrgb(43, 114, 19)
HSLhsl(105, 71%, 26%)
HSVhsv(105, 83%, 45%)
CMYKcmyk(62.3%, 0%, 83.3%, 55.3%)
CIE-LABlab(42.15, -39.75, 42.14)
CIE-LCHlch(42.15, 57.93, 133.33°)
OKLaboklab(48.82% -0.1094 0.0935)
OKLCHoklch(48.82% 0.144 139.5)
XYZxyz(7.1308, 12.5946, 2.6712)
Luminance0.1260 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7213 #5A1372
analogous
#5A7213 #2B7213 #13722A
triadic
#2B7213 #132B72 #72132B
tetradic
#2B7213 #135A72 #5A1372 #722A13
square
#2B7213 #135A72 #5A1372 #722A13
split-complementary
#2B7213 #2A1372 #72135A
monochromatic
#0A1A04 #173E0A #2B7213 #3FA61C #53DB25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B7213#FFFFFF#000000##FFFFFF
##2B72131.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)
#6D611E
Tritanopia (blue-blind)
#226E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2b7213;
/* rgb */ color: rgb(43, 114, 19);
/* oklch */ color: oklch(48.8% 0.144 139.5);
Tailwind
colors: {
  custom: {
    50: '#6e9b5a',
    500: '#2b7213',
    950: '#000000',
  },
}
SCSS
$custom: #2b7213;
$custom-light: #6e9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7213",
  "rgb": {
    "r": 43,
    "g": 114,
    "b": 19
  },
  "hsl": {
    "h": 104.842,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48816,
    "c": 0.14393,
    "h": 139.5
  },
  "luminance": 0.12595
}

Semantic roles & 50–950 ramp

primary
#2B7213
secondary
#8C38A9
accent
#3AEEC1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7213

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

Preview Lab → · Contrast checker → · Palette generator →

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