#2A6211#2A6211

#2A6211 is a dark, vivid green. Relative luminance 0.093; OKLCH L 44.1% C 0.125 H 138.2°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#2A6211
RGBrgb(42, 98, 17)
HSLhsl(101, 70%, 23%)
HSVhsv(101, 83%, 38%)
CMYKcmyk(57.1%, 0%, 82.7%, 61.6%)
CIE-LABlab(36.49, -33.78, 37.45)
CIE-LCHlch(36.49, 50.43, 132.05°)
OKLaboklab(44.14% -0.0934 0.0834)
OKLCHoklch(44.14% 0.125 138.2)
XYZxyz(5.4235, 9.2676, 2.0332)
Luminance0.0927 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6211 #491162
analogous
#536211 #2A6211 #116220
triadic
#2A6211 #112A62 #62112A
tetradic
#2A6211 #115362 #491162 #622011
square
#2A6211 #115362 #491162 #622011
split-complementary
#2A6211 #201162 #621153
monochromatic
#0B1A05 #142E08 #2A6211 #40961A #57CA23

Accessibility & contrast

On white

7.36
#2A6211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2A6211 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6211
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6211#FFFFFF#000000##FFFFFF
##2A62111.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a6211;
/* rgb */ color: rgb(42, 98, 17);
/* oklch */ color: oklch(44.1% 0.125 138.2);
Tailwind
colors: {
  custom: {
    50: '#6b8f56',
    500: '#2a6211',
    950: '#000000',
  },
}
SCSS
$custom: #2a6211;
$custom-light: #6b8f56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6211",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 17
  },
  "hsl": {
    "h": 101.481,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.44136,
    "c": 0.12523,
    "h": 138.2
  },
  "luminance": 0.09268
}

Semantic roles & 50–950 ramp

primary
#2A6211
secondary
#7B349A
accent
#3BEDB6
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A6211

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

Preview Lab → · Contrast checker → · Palette generator →

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