#2A6216#2A6216

#2A6216 is a dark, vivid green. Relative luminance 0.093; OKLCH L 44.2% C 0.122 H 138.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#2A6216
RGBrgb(42, 98, 22)
HSLhsl(104, 63%, 24%)
HSVhsv(104, 78%, 38%)
CMYKcmyk(57.1%, 0%, 77.6%, 61.6%)
CIE-LABlab(36.53, -33.40, 35.58)
CIE-LCHlch(36.53, 48.80, 133.20°)
OKLaboklab(44.17% -0.0921 0.0803)
OKLCHoklch(44.17% 0.122 138.9)
XYZxyz(5.4671, 9.2851, 2.2630)
Luminance0.0929 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6216 #4E1662
analogous
#506216 #2A6216 #166228
triadic
#2A6216 #162A62 #62162A
tetradic
#2A6216 #165062 #4E1662 #622816
square
#2A6216 #165062 #4E1662 #622816
split-complementary
#2A6216 #281662 #621650
monochromatic
#0B1906 #15300B #2A6216 #3F9421 #55C62C

Accessibility & contrast

On white

7.35
#2A6216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2A6216 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6216
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6216#FFFFFF#000000##FFFFFF
##2A62161.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655908
Deuteranopia (green-blind)
#5E541E
Tritanopia (blue-blind)
#255E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a6216;
/* rgb */ color: rgb(42, 98, 22);
/* oklch */ color: oklch(44.2% 0.122 138.9);
Tailwind
colors: {
  custom: {
    50: '#6a8f59',
    500: '#2a6216',
    950: '#000000',
  },
}
SCSS
$custom: #2a6216;
$custom-light: #6a8f59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6216",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 22
  },
  "hsl": {
    "h": 104.211,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.44173,
    "c": 0.12217,
    "h": 138.9
  },
  "luminance": 0.09286
}

Semantic roles & 50–950 ramp

primary
#2A6216
secondary
#803B99
accent
#41E6BB
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A6216

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

Preview Lab → · Contrast checker → · Palette generator →

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