#2A7311#2A7311

#2A7311 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.147 H 139.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#2A7311
RGBrgb(42, 115, 17)
HSLhsl(105, 74%, 26%)
HSVhsv(105, 85%, 45%)
CMYKcmyk(63.5%, 0%, 85.2%, 54.9%)
CIE-LABlab(42.45, -40.51, 43.03)
CIE-LCHlch(42.45, 59.10, 133.28°)
OKLaboklab(49.06% -0.1115 0.0951)
OKLCHoklch(49.06% 0.147 139.5)
XYZxyz(7.1864, 12.7935, 2.6209)
Luminance0.1279 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7311 #5A1173
analogous
#5B7311 #2A7311 #117329
triadic
#2A7311 #112A73 #73112A
tetradic
#2A7311 #115B73 #5A1173 #732911
square
#2A7311 #115B73 #5A1173 #732911
split-complementary
#2A7311 #291173 #73115B
monochromatic
#0A1B04 #173E09 #2A7311 #3DA819 #51DE21

Accessibility & contrast

On white

5.90
#2A7311 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2A7311 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7311
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7311#FFFFFF#000000##FFFFFF
##2A73111.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6E621D
Tritanopia (blue-blind)
#216F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7311;
/* rgb */ color: rgb(42, 115, 17);
/* oklch */ color: oklch(49.1% 0.147 139.5);
Tailwind
colors: {
  custom: {
    50: '#6e9c59',
    500: '#2a7311',
    950: '#000000',
  },
}
SCSS
$custom: #2a7311;
$custom-light: #6e9c59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7311",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 104.694,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.49056,
    "c": 0.14655,
    "h": 139.5
  },
  "luminance": 0.12794
}

Semantic roles & 50–950 ramp

primary
#2A7311
secondary
#8C36AA
accent
#37F1C1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7311

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

Preview Lab → · Contrast checker → · Palette generator →

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