#2A6816#2A6816

#2A6816 is a mid, vivid green. Relative luminance 0.105; OKLCH L 45.9% C 0.130 H 139.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2A6816
RGBrgb(42, 104, 22)
HSLhsl(105, 65%, 25%)
HSVhsv(105, 79%, 41%)
CMYKcmyk(59.6%, 0%, 78.8%, 59.2%)
CIE-LABlab(38.64, -35.88, 37.69)
CIE-LCHlch(38.64, 52.03, 133.59°)
OKLaboklab(45.92% -0.0987 0.0847)
OKLCHoklch(45.92% 0.13 139.4)
XYZxyz(6.0497, 10.4503, 2.4572)
Luminance0.1045 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6816 #541668
analogous
#536816 #2A6816 #16682B
triadic
#2A6816 #162A68 #68162A
tetradic
#2A6816 #165368 #541668 #682B16
square
#2A6816 #165368 #541668 #682B16
split-complementary
#2A6816 #2B1668 #681653
monochromatic
#0A1905 #16350B #2A6816 #3E9B21 #53CD2B

Accessibility & contrast

On white

6.80
#2A6816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2A6816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6816
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6816#FFFFFF#000000##FFFFFF
##2A68161.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E06
Deuteranopia (green-blind)
#63591F
Tritanopia (blue-blind)
#236458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a6816;
/* rgb */ color: rgb(42, 104, 22);
/* oklch */ color: oklch(45.9% 0.130 139.4);
Tailwind
colors: {
  custom: {
    50: '#6c945a',
    500: '#2a6816',
    950: '#000000',
  },
}
SCSS
$custom: #2a6816;
$custom-light: #6c945a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6816",
  "rgb": {
    "r": 42,
    "g": 104,
    "b": 22
  },
  "hsl": {
    "h": 105.366,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45915,
    "c": 0.13009,
    "h": 139.4
  },
  "luminance": 0.10451
}

Semantic roles & 50–950 ramp

primary
#2A6816
secondary
#863B9F
accent
#40E8BF
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6816

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

Preview Lab → · Contrast checker → · Palette generator →

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