#2D8021#2D8021

#2D8021 is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.0% C 0.152 H 141.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2D8021
RGBrgb(45, 128, 33)
HSLhsl(112, 59%, 32%)
HSVhsv(112, 74%, 50%)
CMYKcmyk(64.8%, 0%, 74.2%, 49.8%)
CIE-LABlab(47.11, -43.50, 41.95)
CIE-LCHlch(47.11, 60.43, 136.04°)
OKLaboklab(52.97% -0.1188 0.0952)
OKLCHoklch(52.97% 0.152 141.3)
XYZxyz(9.0754, 16.1052, 4.0689)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8021 #742180
analogous
#5D8021 #2D8021 #218045
triadic
#2D8021 #212D80 #80212D
tetradic
#2D8021 #215D80 #742180 #804521
square
#2D8021 #215D80 #742180 #804521
split-complementary
#2D8021 #452180 #80215D
monochromatic
#0B1F08 #1C4F14 #2D8021 #3EB12E #5CD14B

Accessibility & contrast

On white

4.97
#2D8021 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#2D8021 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D8021
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8021#FFFFFF#000000##FFFFFF
##2D80211.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837411
Deuteranopia (green-blind)
#796D2B
Tritanopia (blue-blind)
#1F7C6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2d8021;
/* rgb */ color: rgb(45, 128, 33);
/* oklch */ color: oklch(53.0% 0.152 141.3);
Tailwind
colors: {
  custom: {
    50: '#71a663',
    500: '#2d8021',
    950: '#000000',
  },
}
SCSS
$custom: #2d8021;
$custom-light: #71a663;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8021",
  "rgb": {
    "r": 45,
    "g": 128,
    "b": 33
  },
  "hsl": {
    "h": 112.421,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5297,
    "c": 0.15226,
    "h": 141.3
  },
  "luminance": 0.16106
}

Semantic roles & 50–950 ramp

primary
#2D8021
secondary
#A54AB3
accent
#46E2CE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2D8021

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

Preview Lab → · Contrast checker → · Palette generator →

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