#2A6812#2A6812

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

Color values

HEX#2A6812
RGBrgb(42, 104, 18)
HSLhsl(103, 70%, 24%)
HSVhsv(103, 83%, 41%)
CMYKcmyk(59.6%, 0%, 82.7%, 59.2%)
CIE-LABlab(38.61, -36.16, 39.12)
CIE-LCHlch(38.61, 53.27, 132.75°)
OKLaboklab(45.89% -0.0997 0.0871)
OKLCHoklch(45.89% 0.132 138.9)
XYZxyz(6.0141, 10.4360, 2.2696)
Luminance0.1044 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6812 #501268
analogous
#556812 #2A6812 #126825
triadic
#2A6812 #122A68 #68122A
tetradic
#2A6812 #125568 #501268 #682512
square
#2A6812 #125568 #501268 #682512
split-complementary
#2A6812 #251268 #681255
monochromatic
#0B1A05 #153409 #2A6812 #3F9C1B #54D024

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A6812#FFFFFF#000000##FFFFFF
##2A68121.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)
#6B5E00
Deuteranopia (green-blind)
#64591C
Tritanopia (blue-blind)
#246458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a6812;
/* rgb */ color: rgb(42, 104, 18);
/* oklch */ color: oklch(45.9% 0.132 138.9);
Tailwind
colors: {
  custom: {
    50: '#6c9458',
    500: '#2a6812',
    950: '#000000',
  },
}
SCSS
$custom: #2a6812;
$custom-light: #6c9458;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6812",
  "rgb": {
    "r": 42,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 103.256,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.45886,
    "c": 0.13241,
    "h": 138.9
  },
  "luminance": 0.10437
}

Semantic roles & 50–950 ramp

primary
#2A6812
secondary
#8236A0
accent
#3BEDBB
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6812

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

Preview Lab → · Contrast checker → · Palette generator →

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