#2B7E40#2B7E40

#2B7E40 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.124 H 148.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2B7E40
RGBrgb(43, 126, 64)
HSLhsl(135, 49%, 33%)
HSVhsv(135, 66%, 49%)
CMYKcmyk(65.9%, 0%, 49.2%, 50.6%)
CIE-LABlab(46.72, -39.26, 26.49)
CIE-LCHlch(46.72, 47.36, 145.99°)
OKLaboklab(52.74% -0.1059 0.0646)
OKLCHoklch(52.74% 0.124 148.6)
XYZxyz(9.3818, 15.8045, 7.4056)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7E40 #7E2B69
analogous
#3F7E2B #2B7E40 #2B7E69
triadic
#2B7E40 #402B7E #7E402B
tetradic
#2B7E40 #2B3F7E #7E2B69 #7E692B
square
#2B7E40 #2B3F7E #7E2B69 #7E692B
split-complementary
#2B7E40 #692B7E #7E2B3F
monochromatic
#0C2312 #1B5029 #2B7E40 #3BAC57 #5CC777

Accessibility & contrast

On white

5.05
#2B7E40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2B7E40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7E40
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7E40#FFFFFF#000000##FFFFFF
##2B7E401.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F733B
Deuteranopia (green-blind)
#756C44
Tritanopia (blue-blind)
#107C6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2b7e40;
/* rgb */ color: rgb(43, 126, 64);
/* oklch */ color: oklch(52.7% 0.124 148.6);
Tailwind
colors: {
  custom: {
    50: '#6ea476',
    500: '#2b7e40',
    950: '#000000',
  },
}
SCSS
$custom: #2b7e40;
$custom-light: #6ea476;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7e40",
  "rgb": {
    "r": 43,
    "g": 126,
    "b": 64
  },
  "hsl": {
    "h": 135.181,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52737,
    "c": 0.1241,
    "h": 148.6
  },
  "luminance": 0.15805
}

Semantic roles & 50–950 ramp

primary
#2B7E40
secondary
#AD5898
accent
#4FB6D9
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2B7E40

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

Preview Lab → · Contrast checker → · Palette generator →

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