#2D7212#2D7212

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

Color values

HEX#2D7212
RGBrgb(45, 114, 18)
HSLhsl(103, 73%, 26%)
HSVhsv(103, 84%, 45%)
CMYKcmyk(60.5%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.21, -39.26, 42.54)
CIE-LCHlch(42.21, 57.89, 132.70°)
OKLaboklab(48.89% -0.1083 0.0942)
OKLCHoklch(48.89% 0.144 139)
XYZxyz(7.2084, 12.6356, 2.6312)
Luminance0.1264 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7212 #571272
analogous
#5D7212 #2D7212 #127227
triadic
#2D7212 #122D72 #72122D
tetradic
#2D7212 #125D72 #571272 #722712
square
#2D7212 #125D72 #571272 #722712
split-complementary
#2D7212 #271272 #72125D
monochromatic
#0A1A04 #183D0A #2D7212 #42A71A #57DC23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D7212#FFFFFF#000000##FFFFFF
##2D72121.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)
#6D611E
Tritanopia (blue-blind)
#266E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d7212;
/* rgb */ color: rgb(45, 114, 18);
/* oklch */ color: oklch(48.9% 0.144 139.0);
Tailwind
colors: {
  custom: {
    50: '#6f9b59',
    500: '#2d7212',
    950: '#000000',
  },
}
SCSS
$custom: #2d7212;
$custom-light: #6f9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7212",
  "rgb": {
    "r": 45,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 103.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48886,
    "c": 0.14351,
    "h": 139
  },
  "luminance": 0.12636
}

Semantic roles & 50–950 ramp

primary
#2D7212
secondary
#8937A9
accent
#38EFBC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2D7212

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

Preview Lab → · Contrast checker → · Palette generator →

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