#2B7928#2B7928

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

Color values

HEX#2B7928
RGBrgb(43, 121, 40)
HSLhsl(118, 50%, 32%)
HSVhsv(118, 67%, 47%)
CMYKcmyk(64.5%, 0%, 66.9%, 52.5%)
CIE-LABlab(44.72, -40.63, 36.36)
CIE-LCHlch(44.72, 54.52, 138.18°)
OKLaboklab(50.99% -0.1105 0.0843)
OKLCHoklch(50.99% 0.139 142.7)
XYZxyz(8.2162, 14.3407, 4.3421)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7928 #762879
analogous
#547928 #2B7928 #28794E
triadic
#2B7928 #282B79 #79282B
tetradic
#2B7928 #285479 #762879 #794E28
square
#2B7928 #285479 #762879 #794E28
split-complementary
#2B7928 #4E2879 #792854
monochromatic
#0A1D0A #1B4B19 #2B7928 #3BA737 #59C755

Accessibility & contrast

On white

5.43
#2B7928 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2B7928 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7928
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7928#FFFFFF#000000##FFFFFF
##2B79281.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1E
Deuteranopia (green-blind)
#72672F
Tritanopia (blue-blind)
#1C7568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2b7928;
/* rgb */ color: rgb(43, 121, 40);
/* oklch */ color: oklch(51.0% 0.139 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ea066',
    500: '#2b7928',
    950: '#000000',
  },
}
SCSS
$custom: #2b7928;
$custom-light: #6ea066;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7928",
  "rgb": {
    "r": 43,
    "g": 121,
    "b": 40
  },
  "hsl": {
    "h": 117.778,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.50992,
    "c": 0.13904,
    "h": 142.7
  },
  "luminance": 0.14342
}

Semantic roles & 50–950 ramp

primary
#2B7928
secondary
#A852AB
accent
#4EDAD5
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2B7928

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

Preview Lab → · Contrast checker → · Palette generator →

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