#2B821B#2B821B

#2B821B is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.4% C 0.159 H 141.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#2B821B
RGBrgb(43, 130, 27)
HSLhsl(111, 66%, 31%)
HSVhsv(111, 79%, 51%)
CMYKcmyk(66.9%, 0%, 79.2%, 49%)
CIE-LABlab(47.70, -45.18, 44.76)
CIE-LCHlch(47.70, 63.60, 135.27°)
OKLaboklab(53.43% -0.1236 0.1002)
OKLCHoklch(53.43% 0.159 141)
XYZxyz(9.1763, 16.5571, 3.7489)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B821B #721B82
analogous
#5E821B #2B821B #1B823F
triadic
#2B821B #1B2B82 #821B2B
tetradic
#2B821B #1B5E82 #721B82 #823F1B
square
#2B821B #1B5E82 #721B82 #823F1B
split-complementary
#2B821B #3F1B82 #821B5E
monochromatic
#091D06 #1A4F10 #2B821B #3CB526 #58D740

Accessibility & contrast

On white

4.87
#2B821B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#2B821B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B821B
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B821B#FFFFFF#000000##FFFFFF
##2B821B1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857502
Deuteranopia (green-blind)
#7B6E27
Tritanopia (blue-blind)
#1B7E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2b821b;
/* rgb */ color: rgb(43, 130, 27);
/* oklch */ color: oklch(53.4% 0.159 141.0);
Tailwind
colors: {
  custom: {
    50: '#71a760',
    500: '#2b821b',
    950: '#000000',
  },
}
SCSS
$custom: #2b821b;
$custom-light: #71a760;
$custom-dark: #000000;
JSON
{
  "hex": "#2b821b",
  "rgb": {
    "r": 43,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 110.68,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53425,
    "c": 0.1591,
    "h": 141
  },
  "luminance": 0.16558
}

Semantic roles & 50–950 ramp

primary
#2B821B
secondary
#A443B6
accent
#3FE9CE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2B821B

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

Preview Lab → · Contrast checker → · Palette generator →

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