#2B7015#2B7015

#2B7015 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.3% C 0.140 H 139.5°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#2B7015
RGBrgb(43, 112, 21)
HSLhsl(105, 68%, 26%)
HSVhsv(105, 81%, 44%)
CMYKcmyk(61.6%, 0%, 81.2%, 56.1%)
CIE-LABlab(41.46, -38.84, 40.82)
CIE-LCHlch(41.46, 56.35, 133.58°)
OKLaboklab(48.25% -0.1068 0.0911)
OKLCHoklch(48.25% 0.14 139.5)
XYZxyz(6.9255, 12.1555, 2.6906)
Luminance0.1216 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7015 #5A1570
analogous
#587015 #2B7015 #15702D
triadic
#2B7015 #152B70 #70152B
tetradic
#2B7015 #155870 #5A1570 #702D15
square
#2B7015 #155870 #5A1570 #702D15
split-complementary
#2B7015 #2D1570 #701558
monochromatic
#0A1A05 #173C0B #2B7015 #3FA41F #53D729

Accessibility & contrast

On white

6.12
#2B7015 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2B7015 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7015
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7015#FFFFFF#000000##FFFFFF
##2B70151.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736500
Deuteranopia (green-blind)
#6B601F
Tritanopia (blue-blind)
#236C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2b7015;
/* rgb */ color: rgb(43, 112, 21);
/* oklch */ color: oklch(48.3% 0.140 139.5);
Tailwind
colors: {
  custom: {
    50: '#6e9a5a',
    500: '#2b7015',
    950: '#000000',
  },
}
SCSS
$custom: #2b7015;
$custom-light: #6e9a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7015",
  "rgb": {
    "r": 43,
    "g": 112,
    "b": 21
  },
  "hsl": {
    "h": 105.495,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48254,
    "c": 0.14041,
    "h": 139.5
  },
  "luminance": 0.12156
}

Semantic roles & 50–950 ramp

primary
#2B7015
secondary
#8C3BA6
accent
#3DEBC1
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2B7015

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

Preview Lab → · Contrast checker → · Palette generator →

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