#2A6011#2A6011

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

Color values

HEX#2A6011
RGBrgb(42, 96, 17)
HSLhsl(101, 70%, 22%)
HSVhsv(101, 82%, 38%)
CMYKcmyk(56.3%, 0%, 82.3%, 62.4%)
CIE-LABlab(35.79, -32.94, 36.77)
CIE-LCHlch(35.79, 49.37, 131.85°)
OKLaboklab(43.55% -0.0911 0.082)
OKLCHoklch(43.55% 0.123 138)
XYZxyz(5.2387, 8.8980, 1.9716)
Luminance0.0890 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6011 #471160
analogous
#526011 #2A6011 #116020
triadic
#2A6011 #112A60 #60112A
tetradic
#2A6011 #115260 #471160 #602011
square
#2A6011 #115260 #471160 #602011
split-complementary
#2A6011 #201160 #601152
monochromatic
#0B1A05 #132C08 #2A6011 #41941A #57C823

Accessibility & contrast

On white

7.56
#2A6011 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A6011
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6011#FFFFFF#000000##FFFFFF
##2A60111.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a6011;
/* rgb */ color: rgb(42, 96, 17);
/* oklch */ color: oklch(43.6% 0.123 138.0);
Tailwind
colors: {
  custom: {
    50: '#6a8e56',
    500: '#2a6011',
    950: '#000000',
  },
}
SCSS
$custom: #2a6011;
$custom-light: #6a8e56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6011",
  "rgb": {
    "r": 42,
    "g": 96,
    "b": 17
  },
  "hsl": {
    "h": 101.013,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43552,
    "c": 0.1226,
    "h": 138
  },
  "luminance": 0.08898
}

Semantic roles & 50–950 ramp

primary
#2A6011
secondary
#793499
accent
#3BEDB5
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A6011

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

Preview Lab → · Contrast checker → · Palette generator →

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