#2A7011#2A7011

#2A7011 is a mid, vivid green. Relative luminance 0.121; OKLCH L 48.2% C 0.143 H 139.3°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#2A7011
RGBrgb(42, 112, 17)
HSLhsl(104, 74%, 25%)
HSVhsv(104, 85%, 44%)
CMYKcmyk(62.5%, 0%, 84.8%, 56.1%)
CIE-LABlab(41.41, -39.37, 42.07)
CIE-LCHlch(41.41, 57.62, 133.10°)
OKLaboklab(48.19% -0.1084 0.0931)
OKLCHoklch(48.19% 0.143 139.3)
XYZxyz(6.8499, 12.1204, 2.5087)
Luminance0.1212 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7011 #571170
analogous
#597011 #2A7011 #117028
triadic
#2A7011 #112A70 #70112A
tetradic
#2A7011 #115970 #571170 #702811
square
#2A7011 #115970 #571170 #702811
split-complementary
#2A7011 #281170 #701159
monochromatic
#0A1B04 #163B09 #2A7011 #3EA519 #52DA21

Accessibility & contrast

On white

6.13
#2A7011 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#2A7011 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7011
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7011#FFFFFF#000000##FFFFFF
##2A70111.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736500
Deuteranopia (green-blind)
#6B601D
Tritanopia (blue-blind)
#226C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a7011;
/* rgb */ color: rgb(42, 112, 17);
/* oklch */ color: oklch(48.2% 0.143 139.3);
Tailwind
colors: {
  custom: {
    50: '#6d9a59',
    500: '#2a7011',
    950: '#000000',
  },
}
SCSS
$custom: #2a7011;
$custom-light: #6d9a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7011",
  "rgb": {
    "r": 42,
    "g": 112,
    "b": 17
  },
  "hsl": {
    "h": 104.211,
    "s": 73.643,
    "l": 25.294
  },
  "oklch": {
    "l": 0.48192,
    "c": 0.1429,
    "h": 139.3
  },
  "luminance": 0.12121
}

Semantic roles & 50–950 ramp

primary
#2A7011
secondary
#8935A7
accent
#37F0C0
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A7011

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

Preview Lab → · Contrast checker → · Palette generator →

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