#2D821F#2D821F

#2D821F is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.5% C 0.156 H 141.1°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#2D821F
RGBrgb(45, 130, 31)
HSLhsl(112, 61%, 32%)
HSVhsv(112, 76%, 51%)
CMYKcmyk(65.4%, 0%, 76.2%, 49%)
CIE-LABlab(47.78, -44.41, 43.40)
CIE-LCHlch(47.78, 62.10, 135.66°)
OKLaboklab(53.52% -0.1214 0.098)
OKLCHoklch(53.52% 0.156 141.1)
XYZxyz(9.3117, 16.6212, 4.0135)
Luminance0.1662 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D821F #741F82
analogous
#5F821F #2D821F #1F8243
triadic
#2D821F #1F2D82 #821F2D
tetradic
#2D821F #1F5F82 #741F82 #82431F
square
#2D821F #1F5F82 #741F82 #82431F
split-complementary
#2D821F #431F82 #821F5F
monochromatic
#0B1F07 #1C5113 #2D821F #3EB32B #5CD348

Accessibility & contrast

On white

4.86
#2D821F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#2D821F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D821F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D821F#FFFFFF#000000##FFFFFF
##2D821F1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85760C
Deuteranopia (green-blind)
#7B6F29
Tritanopia (blue-blind)
#1F7E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2d821f;
/* rgb */ color: rgb(45, 130, 31);
/* oklch */ color: oklch(53.5% 0.156 141.1);
Tailwind
colors: {
  custom: {
    50: '#72a762',
    500: '#2d821f',
    950: '#000000',
  },
}
SCSS
$custom: #2d821f;
$custom-light: #72a762;
$custom-dark: #000000;
JSON
{
  "hex": "#2d821f",
  "rgb": {
    "r": 45,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 111.515,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53517,
    "c": 0.15599,
    "h": 141.1
  },
  "luminance": 0.16622
}

Semantic roles & 50–950 ramp

primary
#2D821F
secondary
#A548B5
accent
#43E5CE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2D821F

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

Preview Lab → · Contrast checker → · Palette generator →

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