#2B7C40#2B7C40

#2B7C40 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.2% C 0.121 H 148.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2B7C40
RGBrgb(43, 124, 64)
HSLhsl(136, 49%, 33%)
HSVhsv(136, 65%, 49%)
CMYKcmyk(65.3%, 0%, 48.4%, 51.4%)
CIE-LABlab(46.04, -38.44, 25.64)
CIE-LCHlch(46.04, 46.20, 146.30°)
OKLaboklab(52.18% -0.1038 0.0627)
OKLCHoklch(52.18% 0.121 148.9)
XYZxyz(9.1287, 15.2981, 7.3213)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7C40 #7C2B67
analogous
#3E7C2B #2B7C40 #2B7C69
triadic
#2B7C40 #402B7C #7C402B
tetradic
#2B7C40 #2B3E7C #7C2B67 #7C692B
square
#2B7C40 #2B3E7C #7C2B67 #7C692B
split-complementary
#2B7C40 #692B7C #7C2B3E
monochromatic
#0B2111 #1B4F29 #2B7C40 #3BA957 #5BC677

Accessibility & contrast

On white

5.17
#2B7C40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2B7C40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7C40
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7C40#FFFFFF#000000##FFFFFF
##2B7C401.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D713B
Deuteranopia (green-blind)
#736A44
Tritanopia (blue-blind)
#117A6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2b7c40;
/* rgb */ color: rgb(43, 124, 64);
/* oklch */ color: oklch(52.2% 0.121 148.9);
Tailwind
colors: {
  custom: {
    50: '#6ea376',
    500: '#2b7c40',
    950: '#000000',
  },
}
SCSS
$custom: #2b7c40;
$custom-light: #6ea376;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7c40",
  "rgb": {
    "r": 43,
    "g": 124,
    "b": 64
  },
  "hsl": {
    "h": 135.556,
    "s": 48.503,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5218,
    "c": 0.12122,
    "h": 148.9
  },
  "luminance": 0.15299
}

Semantic roles & 50–950 ramp

primary
#2B7C40
secondary
#AC5796
accent
#50B5D8
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2B7C40

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

Preview Lab → · Contrast checker → · Palette generator →

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