#2A7A1A#2A7A1A

#2A7A1A is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.150 H 140.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#2A7A1A
RGBrgb(42, 122, 26)
HSLhsl(110, 65%, 29%)
HSVhsv(110, 79%, 48%)
CMYKcmyk(65.6%, 0%, 78.7%, 52.2%)
CIE-LABlab(44.92, -42.55, 42.39)
CIE-LCHlch(44.92, 60.06, 135.11°)
OKLaboklab(51.12% -0.1165 0.0951)
OKLCHoklch(51.12% 0.15 140.8)
XYZxyz(8.1004, 14.4851, 3.3461)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A1A #6A1A7A
analogous
#5A7A1A #2A7A1A #1A7A3A
triadic
#2A7A1A #1A2A7A #7A1A2A
tetradic
#2A7A1A #1A5A7A #6A1A7A #7A3A1A
square
#2A7A1A #1A5A7A #6A1A7A #7A3A1A
split-complementary
#2A7A1A #3A1A7A #7A1A5A
monochromatic
#091905 #19480F #2A7A1A #3BAC25 #53D539

Accessibility & contrast

On white

5.39
#2A7A1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#2A7A1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A1A
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A1A#FFFFFF#000000##FFFFFF
##2A7A1A1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E05
Deuteranopia (green-blind)
#746825
Tritanopia (blue-blind)
#1D7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a1a;
/* rgb */ color: rgb(42, 122, 26);
/* oklch */ color: oklch(51.1% 0.150 140.8);
Tailwind
colors: {
  custom: {
    50: '#6fa15e',
    500: '#2a7a1a',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a1a;
$custom-light: #6fa15e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a1a",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 26
  },
  "hsl": {
    "h": 110,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51116,
    "c": 0.1504,
    "h": 140.8
  },
  "luminance": 0.14486
}

Semantic roles & 50–950 ramp

primary
#2A7A1A
secondary
#9C41AE
accent
#40E8CC
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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