#2B7215#2B7215

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

Color values

HEX#2B7215
RGBrgb(43, 114, 21)
HSLhsl(106, 69%, 26%)
HSVhsv(106, 82%, 45%)
CMYKcmyk(62.3%, 0%, 81.6%, 55.3%)
CIE-LABlab(42.16, -39.62, 41.48)
CIE-LCHlch(42.16, 57.36, 133.68°)
OKLaboklab(48.83% -0.1089 0.0925)
OKLCHoklch(48.83% 0.143 139.7)
XYZxyz(7.1486, 12.6017, 2.7650)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7215 #5C1572
analogous
#5A7215 #2B7215 #15722D
triadic
#2B7215 #152B72 #72152B
tetradic
#2B7215 #155A72 #5C1572 #722D15
square
#2B7215 #155A72 #5C1572 #722D15
split-complementary
#2B7215 #2D1572 #72155A
monochromatic
#0A1A05 #183E0B #2B7215 #3EA61F #53D82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #2b7215;
/* rgb */ color: rgb(43, 114, 21);
/* oklch */ color: oklch(48.8% 0.143 139.7);
Tailwind
colors: {
  custom: {
    50: '#6e9b5b',
    500: '#2b7215',
    950: '#000000',
  },
}
SCSS
$custom: #2b7215;
$custom-light: #6e9b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7215",
  "rgb": {
    "r": 43,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 105.806,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48829,
    "c": 0.1429,
    "h": 139.7
  },
  "luminance": 0.12602
}

Semantic roles & 50–950 ramp

primary
#2B7215
secondary
#8E3BA8
accent
#3CECC2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7215

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

Preview Lab → · Contrast checker → · Palette generator →

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