#2B7828#2B7828

#2B7828 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.138 H 142.7°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#2B7828
RGBrgb(43, 120, 40)
HSLhsl(118, 50%, 31%)
HSVhsv(118, 67%, 47%)
CMYKcmyk(64.2%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.37, -40.25, 35.98)
CIE-LCHlch(44.37, 53.98, 138.21°)
OKLaboklab(50.71% -0.1095 0.0835)
OKLCHoklch(50.71% 0.138 142.7)
XYZxyz(8.0953, 14.0990, 4.3018)
Luminance0.1410 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7828 #752878
analogous
#537828 #2B7828 #28784D
triadic
#2B7828 #282B78 #78282B
tetradic
#2B7828 #285378 #752878 #784D28
square
#2B7828 #285378 #752878 #784D28
split-complementary
#2B7828 #4D2878 #782853
monochromatic
#0A1C09 #1B4A19 #2B7828 #3BA637 #59C654

Accessibility & contrast

On white

5.50
#2B7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#2B7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7828
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7828#FFFFFF#000000##FFFFFF
##2B78281.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1E
Deuteranopia (green-blind)
#71662F
Tritanopia (blue-blind)
#1D7467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2b7828;
/* rgb */ color: rgb(43, 120, 40);
/* oklch */ color: oklch(50.7% 0.138 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ea066',
    500: '#2b7828',
    950: '#000000',
  },
}
SCSS
$custom: #2b7828;
$custom-light: #6ea066;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7828",
  "rgb": {
    "r": 43,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 117.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.50708,
    "c": 0.13771,
    "h": 142.7
  },
  "luminance": 0.141
}

Semantic roles & 50–950 ramp

primary
#2B7828
secondary
#A752AA
accent
#4EDAD4
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2B7828

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

Preview Lab → · Contrast checker → · Palette generator →

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