#2A6912#2A6912

#2A6912 is a mid, vivid green. Relative luminance 0.106; OKLCH L 46.2% C 0.134 H 138.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#2A6912
RGBrgb(42, 105, 18)
HSLhsl(103, 71%, 24%)
HSVhsv(103, 83%, 41%)
CMYKcmyk(60%, 0%, 82.9%, 58.8%)
CIE-LABlab(38.96, -36.56, 39.45)
CIE-LCHlch(38.96, 53.79, 132.82°)
OKLaboklab(46.18% -0.1008 0.0878)
OKLCHoklch(46.18% 0.134 138.9)
XYZxyz(6.1154, 10.6385, 2.3033)
Luminance0.1064 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6912 #511269
analogous
#566912 #2A6912 #126926
triadic
#2A6912 #122A69 #69122A
tetradic
#2A6912 #125669 #511269 #692612
square
#2A6912 #125669 #511269 #692612
split-complementary
#2A6912 #261269 #691256
monochromatic
#0A1A04 #153509 #2A6912 #3F9D1B #54D124

Accessibility & contrast

On white

6.71
#2A6912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2A6912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6912
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6912#FFFFFF#000000##FFFFFF
##2A69121.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F00
Deuteranopia (green-blind)
#645A1C
Tritanopia (blue-blind)
#236559
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a6912;
/* rgb */ color: rgb(42, 105, 18);
/* oklch */ color: oklch(46.2% 0.134 138.9);
Tailwind
colors: {
  custom: {
    50: '#6c9458',
    500: '#2a6912',
    950: '#000000',
  },
}
SCSS
$custom: #2a6912;
$custom-light: #6c9458;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6912",
  "rgb": {
    "r": 42,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 103.448,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.46176,
    "c": 0.13368,
    "h": 138.9
  },
  "luminance": 0.10639
}

Semantic roles & 50–950 ramp

primary
#2A6912
secondary
#8336A1
accent
#3AEDBC
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6912

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

Preview Lab → · Contrast checker → · Palette generator →

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