#2A7F16#2A7F16

#2A7F16 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.159 H 140.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2A7F16
RGBrgb(42, 127, 22)
HSLhsl(109, 70%, 29%)
HSVhsv(109, 83%, 50%)
CMYKcmyk(66.9%, 0%, 82.7%, 50.2%)
CIE-LABlab(46.62, -44.66, 45.37)
CIE-LCHlch(46.62, 63.66, 134.55°)
OKLaboklab(52.51% -0.1224 0.1008)
OKLCHoklch(52.51% 0.159 140.5)
XYZxyz(8.6886, 15.7280, 3.3368)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F16 #6B167F
analogous
#5F7F16 #2A7F16 #167F36
triadic
#2A7F16 #162A7F #7F162A
tetradic
#2A7F16 #165F7F #6B167F #7F3616
square
#2A7F16 #165F7F #6B167F #7F3616
split-complementary
#2A7F16 #36167F #7F165F
monochromatic
#091A05 #194B0D #2A7F16 #3BB31F #54DC34

Accessibility & contrast

On white

5.07
#2A7F16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2A7F16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F16
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F16#FFFFFF#000000##FFFFFF
##2A7F161.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#786C23
Tritanopia (blue-blind)
#1C7B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7f16;
/* rgb */ color: rgb(42, 127, 22);
/* oklch */ color: oklch(52.5% 0.159 140.5);
Tailwind
colors: {
  custom: {
    50: '#70a55d',
    500: '#2a7f16',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f16;
$custom-light: #70a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f16",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 108.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52512,
    "c": 0.15851,
    "h": 140.5
  },
  "luminance": 0.15729
}

Semantic roles & 50–950 ramp

primary
#2A7F16
secondary
#9D3DB4
accent
#3BEDCB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7F16

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

Preview Lab → · Contrast checker → · Palette generator →

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