#2D6E12#2D6E12

#2D6E12 is a mid, vivid green. Relative luminance 0.118; OKLCH L 47.7% C 0.139 H 138.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#2D6E12
RGBrgb(45, 110, 18)
HSLhsl(102, 72%, 25%)
HSVhsv(102, 84%, 43%)
CMYKcmyk(59.1%, 0%, 83.6%, 56.9%)
CIE-LABlab(40.82, -37.69, 41.24)
CIE-LCHlch(40.82, 55.87, 132.42°)
OKLaboklab(47.74% -0.104 0.0915)
OKLCHoklch(47.74% 0.139 138.7)
XYZxyz(6.7670, 11.7529, 2.4841)
Luminance0.1175 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6E12 #53126E
analogous
#5B6E12 #2D6E12 #126E25
triadic
#2D6E12 #122D6E #6E122D
tetradic
#2D6E12 #125B6E #53126E #6E2512
square
#2D6E12 #125B6E #53126E #6E2512
split-complementary
#2D6E12 #25126E #6E125B
monochromatic
#0B1A04 #173909 #2D6E12 #43A31B #58D723

Accessibility & contrast

On white

6.27
#2D6E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2D6E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D6E12
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6E12#FFFFFF#000000##FFFFFF
##2D6E121.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#695E1D
Tritanopia (blue-blind)
#276A5D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2d6e12;
/* rgb */ color: rgb(45, 110, 18);
/* oklch */ color: oklch(47.7% 0.139 138.7);
Tailwind
colors: {
  custom: {
    50: '#6e9859',
    500: '#2d6e12',
    950: '#000000',
  },
}
SCSS
$custom: #2d6e12;
$custom-light: #6e9859;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6e12",
  "rgb": {
    "r": 45,
    "g": 110,
    "b": 18
  },
  "hsl": {
    "h": 102.391,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.47739,
    "c": 0.13854,
    "h": 138.7
  },
  "luminance": 0.11753
}

Semantic roles & 50–950 ramp

primary
#2D6E12
secondary
#8537A5
accent
#39EFB9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2D6E12

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

Preview Lab → · Contrast checker → · Palette generator →

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