#2A6811#2A6811

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

Color values

HEX#2A6811
RGBrgb(42, 104, 17)
HSLhsl(103, 72%, 24%)
HSVhsv(103, 84%, 41%)
CMYKcmyk(59.6%, 0%, 83.7%, 59.2%)
CIE-LABlab(38.61, -36.23, 39.45)
CIE-LCHlch(38.61, 53.56, 132.56°)
OKLaboklab(45.88% -0.1 0.0876)
OKLCHoklch(45.88% 0.133 138.8)
XYZxyz(6.0061, 10.4328, 2.2274)
Luminance0.1043 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6811 #4F1168
analogous
#556811 #2A6811 #116823
triadic
#2A6811 #112A68 #68112A
tetradic
#2A6811 #115568 #4F1168 #682311
square
#2A6811 #115568 #4F1168 #682311
split-complementary
#2A6811 #231168 #681155
monochromatic
#0B1A04 #153308 #2A6811 #3F9D1A #54D122

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A6811#FFFFFF#000000##FFFFFF
##2A68111.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)
#64591B
Tritanopia (blue-blind)
#246458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a6811;
/* rgb */ color: rgb(42, 104, 17);
/* oklch */ color: oklch(45.9% 0.133 138.8);
Tailwind
colors: {
  custom: {
    50: '#6c9457',
    500: '#2a6811',
    950: '#000000',
  },
}
SCSS
$custom: #2a6811;
$custom-light: #6c9457;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6811",
  "rgb": {
    "r": 42,
    "g": 104,
    "b": 17
  },
  "hsl": {
    "h": 102.759,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.4588,
    "c": 0.13294,
    "h": 138.8
  },
  "luminance": 0.10433
}

Semantic roles & 50–950 ramp

primary
#2A6811
secondary
#8135A0
accent
#39EFBA
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D03
muted
#7A7E78

Preview Lab

Preview with #2A6811

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

Preview Lab → · Contrast checker → · Palette generator →

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