#2D7226#2D7226

#2D7226 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.1% C 0.130 H 141.8°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#2D7226
RGBrgb(45, 114, 38)
HSLhsl(114, 50%, 30%)
HSVhsv(114, 67%, 45%)
CMYKcmyk(60.5%, 0%, 66.7%, 55.3%)
CIE-LABlab(42.36, -37.56, 34.70)
CIE-LCHlch(42.36, 51.14, 137.27°)
OKLaboklab(49.06% -0.1024 0.0806)
OKLCHoklch(49.06% 0.13 141.8)
XYZxyz(7.4490, 12.7318, 3.8983)
Luminance0.1273 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7226 #6B2672
analogous
#537226 #2D7226 #267245
triadic
#2D7226 #262D72 #72262D
tetradic
#2D7226 #265372 #6B2672 #724526
square
#2D7226 #265372 #6B2672 #724526
split-complementary
#2D7226 #452672 #722653
monochromatic
#091708 #1B4417 #2D7226 #3FA035 #59C44E

Accessibility & contrast

On white

5.92
#2D7226 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#2D7226 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7226
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7226#FFFFFF#000000##FFFFFF
##2D72261.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75681D
Deuteranopia (green-blind)
#6C622C
Tritanopia (blue-blind)
#236E62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d7226;
/* rgb */ color: rgb(45, 114, 38);
/* oklch */ color: oklch(49.1% 0.130 141.8);
Tailwind
colors: {
  custom: {
    50: '#6e9b64',
    500: '#2d7226',
    950: '#000000',
  },
}
SCSS
$custom: #2d7226;
$custom-light: #6e9b64;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7226",
  "rgb": {
    "r": 45,
    "g": 114,
    "b": 38
  },
  "hsl": {
    "h": 114.474,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.49055,
    "c": 0.13034,
    "h": 141.8
  },
  "luminance": 0.12732
}

Semantic roles & 50–950 ramp

primary
#2D7226
secondary
#9D4FA5
accent
#4EDACD
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080E05
muted
#7B7E7A

Preview Lab

Preview with #2D7226

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

Preview Lab → · Contrast checker → · Palette generator →

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