#2A7211#2A7211

#2A7211 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.145 H 139.5°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#2A7211
RGBrgb(42, 114, 17)
HSLhsl(105, 74%, 26%)
HSVhsv(105, 85%, 45%)
CMYKcmyk(63.2%, 0%, 85.1%, 55.3%)
CIE-LABlab(42.10, -40.13, 42.71)
CIE-LCHlch(42.10, 58.61, 133.22°)
OKLaboklab(48.77% -0.1105 0.0945)
OKLCHoklch(48.77% 0.145 139.5)
XYZxyz(7.0730, 12.5667, 2.5831)
Luminance0.1257 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7211 #591172
analogous
#5A7211 #2A7211 #117228
triadic
#2A7211 #112A72 #72112A
tetradic
#2A7211 #115A72 #591172 #722811
square
#2A7211 #115A72 #591172 #722811
split-complementary
#2A7211 #281172 #72115A
monochromatic
#0A1B04 #163D09 #2A7211 #3EA719 #51DD21

Accessibility & contrast

On white

5.98
#2A7211 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#2A7211 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7211
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7211#FFFFFF#000000##FFFFFF
##2A72111.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#6D611D
Tritanopia (blue-blind)
#216E60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7211;
/* rgb */ color: rgb(42, 114, 17);
/* oklch */ color: oklch(48.8% 0.145 139.5);
Tailwind
colors: {
  custom: {
    50: '#6e9b59',
    500: '#2a7211',
    950: '#000000',
  },
}
SCSS
$custom: #2a7211;
$custom-light: #6e9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7211",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 17
  },
  "hsl": {
    "h": 104.536,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.48768,
    "c": 0.14533,
    "h": 139.5
  },
  "luminance": 0.12567
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7211

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

Preview Lab → · Contrast checker → · Palette generator →

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