#2A6012#2A6012

#2A6012 is a dark, vivid green. Relative luminance 0.089; OKLCH L 43.6% C 0.122 H 138.1°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#2A6012
RGBrgb(42, 96, 18)
HSLhsl(102, 68%, 22%)
HSVhsv(102, 81%, 38%)
CMYKcmyk(56.3%, 0%, 81.3%, 62.4%)
CIE-LABlab(35.79, -32.87, 36.41)
CIE-LCHlch(35.79, 49.05, 132.07°)
OKLaboklab(43.56% -0.0909 0.0814)
OKLCHoklch(43.56% 0.122 138.1)
XYZxyz(5.2467, 8.9012, 2.0138)
Luminance0.0890 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6012 #481260
analogous
#516012 #2A6012 #126021
triadic
#2A6012 #122A60 #60122A
tetradic
#2A6012 #125160 #481260 #602112
square
#2A6012 #125160 #481260 #602112
split-complementary
#2A6012 #211260 #601251
monochromatic
#0B1A05 #132C08 #2A6012 #41941C #57C725

Accessibility & contrast

On white

7.55
#2A6012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A6012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6012
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6012#FFFFFF#000000##FFFFFF
##2A60121.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635702
Deuteranopia (green-blind)
#5C531A
Tritanopia (blue-blind)
#265C51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a6012;
/* rgb */ color: rgb(42, 96, 18);
/* oklch */ color: oklch(43.6% 0.122 138.1);
Tailwind
colors: {
  custom: {
    50: '#6a8e56',
    500: '#2a6012',
    950: '#000000',
  },
}
SCSS
$custom: #2a6012;
$custom-light: #6a8e56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6012",
  "rgb": {
    "r": 42,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 101.538,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.4356,
    "c": 0.12202,
    "h": 138.1
  },
  "luminance": 0.08902
}

Semantic roles & 50–950 ramp

primary
#2A6012
secondary
#7A3698
accent
#3DEBB6
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A6012

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

Preview Lab → · Contrast checker → · Palette generator →

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