#2A7216#2A7216

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

Color values

HEX#2A7216
RGBrgb(42, 114, 22)
HSLhsl(107, 68%, 27%)
HSVhsv(107, 81%, 45%)
CMYKcmyk(63.2%, 0%, 80.7%, 55.3%)
CIE-LABlab(42.13, -39.82, 41.10)
CIE-LCHlch(42.13, 57.23, 134.09°)
OKLaboklab(48.8% -0.1093 0.0919)
OKLCHoklch(48.8% 0.143 140)
XYZxyz(7.1167, 12.5841, 2.8128)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7216 #5E1672
analogous
#587216 #2A7216 #167230
triadic
#2A7216 #162A72 #72162A
tetradic
#2A7216 #165872 #5E1672 #723016
square
#2A7216 #165872 #5E1672 #723016
split-complementary
#2A7216 #301672 #721658
monochromatic
#091A05 #173F0C #2A7216 #3DA520 #51D62C

Accessibility & contrast

On white

5.97
#2A7216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2A7216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7216
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7216#FFFFFF#000000##FFFFFF
##2A72161.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756701
Deuteranopia (green-blind)
#6D6120
Tritanopia (blue-blind)
#206E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7216;
/* rgb */ color: rgb(42, 114, 22);
/* oklch */ color: oklch(48.8% 0.143 140.0);
Tailwind
colors: {
  custom: {
    50: '#6e9b5b',
    500: '#2a7216',
    950: '#000000',
  },
}
SCSS
$custom: #2a7216;
$custom-light: #6e9b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7216",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 106.957,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48799,
    "c": 0.1428,
    "h": 140
  },
  "luminance": 0.12585
}

Semantic roles & 50–950 ramp

primary
#2A7216
secondary
#903CA8
accent
#3DEBC5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7216

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

Preview Lab → · Contrast checker → · Palette generator →

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