#2D7211#2D7211

#2D7211 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.9% C 0.144 H 138.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#2D7211
RGBrgb(45, 114, 17)
HSLhsl(103, 74%, 26%)
HSVhsv(103, 85%, 45%)
CMYKcmyk(60.5%, 0%, 85.1%, 55.3%)
CIE-LABlab(42.20, -39.32, 42.84)
CIE-LCHlch(42.20, 58.15, 132.54°)
OKLaboklab(48.88% -0.1085 0.0947)
OKLCHoklch(48.88% 0.144 138.9)
XYZxyz(7.2004, 12.6324, 2.5891)
Luminance0.1263 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7211 #561172
analogous
#5D7211 #2D7211 #117225
triadic
#2D7211 #112D72 #72112D
tetradic
#2D7211 #115D72 #561172 #722511
square
#2D7211 #115D72 #561172 #722511
split-complementary
#2D7211 #251172 #72115D
monochromatic
#0B1B04 #183D09 #2D7211 #42A719 #57DD21

Accessibility & contrast

On white

5.95
#2D7211 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2D7211 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7211
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7211#FFFFFF#000000##FFFFFF
##2D72111.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6D611D
Tritanopia (blue-blind)
#266E60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d7211;
/* rgb */ color: rgb(45, 114, 17);
/* oklch */ color: oklch(48.9% 0.144 138.9);
Tailwind
colors: {
  custom: {
    50: '#6f9b59',
    500: '#2d7211',
    950: '#000000',
  },
}
SCSS
$custom: #2d7211;
$custom-light: #6f9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7211",
  "rgb": {
    "r": 45,
    "g": 114,
    "b": 17
  },
  "hsl": {
    "h": 102.68,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.4888,
    "c": 0.14398,
    "h": 138.9
  },
  "luminance": 0.12633
}

Semantic roles & 50–950 ramp

primary
#2D7211
secondary
#8836A9
accent
#37F1BB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2D7211

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

Preview Lab → · Contrast checker → · Palette generator →

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