#2D7B21#2D7B21

#2D7B21 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.6% C 0.146 H 141.2°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#2D7B21
RGBrgb(45, 123, 33)
HSLhsl(112, 58%, 31%)
HSVhsv(112, 73%, 48%)
CMYKcmyk(63.4%, 0%, 73.2%, 51.8%)
CIE-LABlab(45.40, -41.61, 40.19)
CIE-LCHlch(45.40, 57.85, 136.00°)
OKLaboklab(51.56% -0.1137 0.0915)
OKLCHoklch(51.56% 0.146 141.2)
XYZxyz(8.4392, 14.8328, 3.8568)
Luminance0.1483 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7B21 #6F217B
analogous
#5A7B21 #2D7B21 #217B42
triadic
#2D7B21 #212D7B #7B212D
tetradic
#2D7B21 #215A7B #6F217B #7B4221
square
#2D7B21 #215A7B #6F217B #7B4221
split-complementary
#2D7B21 #42217B #7B215A
monochromatic
#0A1A07 #1B4B14 #2D7B21 #3FAB2E #5ACE48

Accessibility & contrast

On white

5.29
#2D7B21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2D7B21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7B21
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7B21#FFFFFF#000000##FFFFFF
##2D7B211.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F13
Deuteranopia (green-blind)
#75692A
Tritanopia (blue-blind)
#217769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2d7b21;
/* rgb */ color: rgb(45, 123, 33);
/* oklch */ color: oklch(51.6% 0.146 141.2);
Tailwind
colors: {
  custom: {
    50: '#70a262',
    500: '#2d7b21',
    950: '#000000',
  },
}
SCSS
$custom: #2d7b21;
$custom-light: #70a262;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7b21",
  "rgb": {
    "r": 45,
    "g": 123,
    "b": 33
  },
  "hsl": {
    "h": 112,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51557,
    "c": 0.14597,
    "h": 141.2
  },
  "luminance": 0.14834
}

Semantic roles & 50–950 ramp

primary
#2D7B21
secondary
#A14AAE
accent
#47E1CC
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2D7B21

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

Preview Lab → · Contrast checker → · Palette generator →

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