#2D7F21#2D7F21

#2D7F21 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.151 H 141.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2D7F21
RGBrgb(45, 127, 33)
HSLhsl(112, 59%, 31%)
HSVhsv(112, 74%, 50%)
CMYKcmyk(64.6%, 0%, 74%, 50.2%)
CIE-LABlab(46.77, -43.13, 41.60)
CIE-LCHlch(46.77, 59.92, 136.03°)
OKLaboklab(52.69% -0.1178 0.0945)
OKLCHoklch(52.69% 0.151 141.3)
XYZxyz(8.9456, 15.8456, 4.0256)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F21 #73217F
analogous
#5C7F21 #2D7F21 #217F44
triadic
#2D7F21 #212D7F #7F212D
tetradic
#2D7F21 #215C7F #73217F #7F4421
square
#2D7F21 #215C7F #73217F #7F4421
split-complementary
#2D7F21 #44217F #7F215C
monochromatic
#0B1E08 #1C4E14 #2D7F21 #3EB02E #5BD04A

Accessibility & contrast

On white

5.04
#2D7F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2D7F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F21
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F21#FFFFFF#000000##FFFFFF
##2D7F211.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827311
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#1F7B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f21;
/* rgb */ color: rgb(45, 127, 33);
/* oklch */ color: oklch(52.7% 0.151 141.3);
Tailwind
colors: {
  custom: {
    50: '#71a562',
    500: '#2d7f21',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f21;
$custom-light: #71a562;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f21",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 112.34,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52688,
    "c": 0.15102,
    "h": 141.3
  },
  "luminance": 0.15846
}

Semantic roles & 50–950 ramp

primary
#2D7F21
secondary
#A44AB2
accent
#46E2CE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2D7F21

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

Preview Lab → · Contrast checker → · Palette generator →

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