#2A7F1A#2A7F1A

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

Color values

HEX#2A7F1A
RGBrgb(42, 127, 26)
HSLhsl(110, 66%, 30%)
HSVhsv(110, 80%, 50%)
CMYKcmyk(66.9%, 0%, 79.5%, 50.2%)
CIE-LABlab(46.64, -44.39, 44.07)
CIE-LCHlch(46.64, 62.55, 135.21°)
OKLaboklab(52.54% -0.1214 0.0986)
OKLCHoklch(52.54% 0.156 140.9)
XYZxyz(8.7302, 15.7447, 3.5560)
Luminance0.1575 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F1A #6F1A7F
analogous
#5D7F1A #2A7F1A #1A7F3C
triadic
#2A7F1A #1A2A7F #7F1A2A
tetradic
#2A7F1A #1A5D7F #6F1A7F #7F3C1A
square
#2A7F1A #1A5D7F #6F1A7F #7F3C1A
split-complementary
#2A7F1A #3C1A7F #7F1A5D
monochromatic
#081905 #194C10 #2A7F1A #3BB224 #55D73C

Accessibility & contrast

On white

5.06
#2A7F1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A7F1A
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F1A#FFFFFF#000000##FFFFFF
##2A7F1A1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827302
Deuteranopia (green-blind)
#786C25
Tritanopia (blue-blind)
#1B7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7f1a;
/* rgb */ color: rgb(42, 127, 26);
/* oklch */ color: oklch(52.5% 0.156 140.9);
Tailwind
colors: {
  custom: {
    50: '#70a55f',
    500: '#2a7f1a',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f1a;
$custom-light: #70a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f1a",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 110.495,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.52538,
    "c": 0.15645,
    "h": 140.9
  },
  "luminance": 0.15746
}

Semantic roles & 50–950 ramp

primary
#2A7F1A
secondary
#A142B3
accent
#3FE9CE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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