#2B7728#2B7728

#2B7728 is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.136 H 142.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#2B7728
RGBrgb(43, 119, 40)
HSLhsl(118, 50%, 31%)
HSVhsv(118, 66%, 47%)
CMYKcmyk(63.9%, 0%, 66.4%, 53.3%)
CIE-LABlab(44.03, -39.85, 35.59)
CIE-LCHlch(44.03, 53.44, 138.23°)
OKLaboklab(50.43% -0.1084 0.0827)
OKLCHoklch(50.43% 0.136 142.7)
XYZxyz(7.9757, 13.8597, 4.2620)
Luminance0.1386 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7728 #742877
analogous
#527728 #2B7728 #28774C
triadic
#2B7728 #282B77 #77282B
tetradic
#2B7728 #285277 #742877 #774C28
square
#2B7728 #285277 #742877 #774C28
split-complementary
#2B7728 #4C2877 #772852
monochromatic
#0A1B09 #1A4919 #2B7728 #3CA537 #58C554

Accessibility & contrast

On white

5.57
#2B7728 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#2B7728 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7728
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7728#FFFFFF#000000##FFFFFF
##2B77281.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C1F
Deuteranopia (green-blind)
#70662F
Tritanopia (blue-blind)
#1D7366
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2b7728;
/* rgb */ color: rgb(43, 119, 40);
/* oklch */ color: oklch(50.4% 0.136 142.7);
Tailwind
colors: {
  custom: {
    50: '#6e9f65',
    500: '#2b7728',
    950: '#000000',
  },
}
SCSS
$custom: #2b7728;
$custom-light: #6e9f65;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7728",
  "rgb": {
    "r": 43,
    "g": 119,
    "b": 40
  },
  "hsl": {
    "h": 117.722,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.50425,
    "c": 0.13638,
    "h": 142.7
  },
  "luminance": 0.1386
}

Semantic roles & 50–950 ramp

primary
#2B7728
secondary
#A652A9
accent
#4FD9D4
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #2B7728

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

Preview Lab → · Contrast checker → · Palette generator →

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