#2D6912#2D6912

#2D6912 is a mid, vivid green. Relative luminance 0.107; OKLCH L 46.3% C 0.132 H 138.2°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#2D6912
RGBrgb(45, 105, 18)
HSLhsl(101, 71%, 24%)
HSVhsv(101, 83%, 41%)
CMYKcmyk(57.1%, 0%, 82.9%, 58.8%)
CIE-LABlab(39.08, -35.67, 39.60)
CIE-LCHlch(39.08, 53.30, 132.01°)
OKLaboklab(46.3% -0.0986 0.0881)
OKLCHoklch(46.3% 0.132 138.2)
XYZxyz(6.2427, 10.7042, 2.3093)
Luminance0.1071 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6912 #4E1269
analogous
#596912 #2D6912 #126922
triadic
#2D6912 #122D69 #69122D
tetradic
#2D6912 #125969 #4E1269 #692212
square
#2D6912 #125969 #4E1269 #692212
split-complementary
#2D6912 #221269 #691259
monochromatic
#0B1A04 #173509 #2D6912 #439D1B #5AD124

Accessibility & contrast

On white

6.69
#2D6912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2D6912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D6912
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6912#FFFFFF#000000##FFFFFF
##2D69121.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D5F00
Deuteranopia (green-blind)
#655A1C
Tritanopia (blue-blind)
#286559
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2d6912;
/* rgb */ color: rgb(45, 105, 18);
/* oklch */ color: oklch(46.3% 0.132 138.2);
Tailwind
colors: {
  custom: {
    50: '#6e9458',
    500: '#2d6912',
    950: '#000000',
  },
}
SCSS
$custom: #2d6912;
$custom-light: #6e9458;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6912",
  "rgb": {
    "r": 45,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 101.379,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.46301,
    "c": 0.13221,
    "h": 138.2
  },
  "luminance": 0.10705
}

Semantic roles & 50–950 ramp

primary
#2D6912
secondary
#8036A1
accent
#3AEDB6
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2D6912

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

Preview Lab → · Contrast checker → · Palette generator →

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