#2A6A12#2A6A12

#2A6A12 is a mid, vivid green. Relative luminance 0.108; OKLCH L 46.5% C 0.135 H 139.0°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#2A6A12
RGBrgb(42, 106, 18)
HSLhsl(104, 71%, 24%)
HSVhsv(104, 83%, 42%)
CMYKcmyk(60.4%, 0%, 83%, 58.4%)
CIE-LABlab(39.32, -36.96, 39.79)
CIE-LCHlch(39.32, 54.31, 132.89°)
OKLaboklab(46.47% -0.1019 0.0885)
OKLCHoklch(46.47% 0.135 139)
XYZxyz(6.2178, 10.8434, 2.3375)
Luminance0.1084 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6A12 #52126A
analogous
#566A12 #2A6A12 #126A26
triadic
#2A6A12 #122A6A #6A122A
tetradic
#2A6A12 #12566A #52126A #6A2612
square
#2A6A12 #12566A #52126A #6A2612
split-complementary
#2A6A12 #26126A #6A1256
monochromatic
#0A1A04 #153609 #2A6A12 #3F9E1B #53D324

Accessibility & contrast

On white

6.63
#2A6A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2A6A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6A12
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6A12#FFFFFF#000000##FFFFFF
##2A6A121.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6000
Deuteranopia (green-blind)
#655B1C
Tritanopia (blue-blind)
#23665A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a6a12;
/* rgb */ color: rgb(42, 106, 18);
/* oklch */ color: oklch(46.5% 0.135 139.0);
Tailwind
colors: {
  custom: {
    50: '#6c9558',
    500: '#2a6a12',
    950: '#000000',
  },
}
SCSS
$custom: #2a6a12;
$custom-light: #6c9558;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6a12",
  "rgb": {
    "r": 42,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 103.636,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.46466,
    "c": 0.13495,
    "h": 139
  },
  "luminance": 0.10844
}

Semantic roles & 50–950 ramp

primary
#2A6A12
secondary
#8436A2
accent
#3AEEBD
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6A12

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

Preview Lab → · Contrast checker → · Palette generator →

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