#2A7D16#2A7D16

#2A7D16 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.156 H 140.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2A7D16
RGBrgb(42, 125, 22)
HSLhsl(108, 70%, 29%)
HSVhsv(108, 82%, 49%)
CMYKcmyk(66.4%, 0%, 82.4%, 51%)
CIE-LABlab(45.93, -43.93, 44.72)
CIE-LCHlch(45.93, 62.69, 134.49°)
OKLaboklab(51.94% -0.1204 0.0994)
OKLCHoklch(51.94% 0.156 140.5)
XYZxyz(8.4329, 15.2166, 3.2516)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D16 #69167D
analogous
#5E7D16 #2A7D16 #167D36
triadic
#2A7D16 #162A7D #7D162A
tetradic
#2A7D16 #165E7D #69167D #7D3616
square
#2A7D16 #165E7D #69167D #7D3616
split-complementary
#2A7D16 #36167D #7D165E
monochromatic
#091A05 #19490D #2A7D16 #3BB11F #53DB32

Accessibility & contrast

On white

5.19
#2A7D16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2A7D16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D16
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D16#FFFFFF#000000##FFFFFF
##2A7D161.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776A22
Tritanopia (blue-blind)
#1C796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d16;
/* rgb */ color: rgb(42, 125, 22);
/* oklch */ color: oklch(51.9% 0.156 140.5);
Tailwind
colors: {
  custom: {
    50: '#70a35d',
    500: '#2a7d16',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d16;
$custom-light: #70a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d16",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 22
  },
  "hsl": {
    "h": 108.35,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51944,
    "c": 0.15615,
    "h": 140.5
  },
  "luminance": 0.15217
}

Semantic roles & 50–950 ramp

primary
#2A7D16
secondary
#9B3DB2
accent
#3BEDCA
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7D16

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

Preview Lab → · Contrast checker → · Palette generator →

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