#2B7E28#2B7E28

#2B7E28 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.146 H 142.7°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2B7E28
RGBrgb(43, 126, 40)
HSLhsl(118, 52%, 33%)
HSVhsv(118, 68%, 49%)
CMYKcmyk(65.9%, 0%, 68.3%, 50.6%)
CIE-LABlab(46.43, -42.55, 38.23)
CIE-LCHlch(46.43, 57.21, 138.06°)
OKLaboklab(52.41% -0.1157 0.0883)
OKLCHoklch(52.41% 0.146 142.7)
XYZxyz(8.8396, 15.5876, 4.5499)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7E28 #7B287E
analogous
#567E28 #2B7E28 #287E50
triadic
#2B7E28 #282B7E #7E282B
tetradic
#2B7E28 #28567E #7B287E #7E5028
square
#2B7E28 #28567E #7B287E #7E5028
split-complementary
#2B7E28 #50287E #7E2856
monochromatic
#0B210B #1B5019 #2B7E28 #3BAC37 #5BCA57

Accessibility & contrast

On white

5.10
#2B7E28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2B7E28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7E28
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7E28#FFFFFF#000000##FFFFFF
##2B7E281.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81721D
Deuteranopia (green-blind)
#776B30
Tritanopia (blue-blind)
#1A7A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2b7e28;
/* rgb */ color: rgb(43, 126, 40);
/* oklch */ color: oklch(52.4% 0.146 142.7);
Tailwind
colors: {
  custom: {
    50: '#70a466',
    500: '#2b7e28',
    950: '#000000',
  },
}
SCSS
$custom: #2b7e28;
$custom-light: #70a466;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7e28",
  "rgb": {
    "r": 43,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 117.907,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52406,
    "c": 0.14559,
    "h": 142.7
  },
  "luminance": 0.15589
}

Semantic roles & 50–950 ramp

primary
#2B7E28
secondary
#AB53AF
accent
#4DDBD6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2B7E28

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

Preview Lab → · Contrast checker → · Palette generator →

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