#2A7C1A#2A7C1A

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

Color values

HEX#2A7C1A
RGBrgb(42, 124, 26)
HSLhsl(110, 65%, 29%)
HSVhsv(110, 79%, 49%)
CMYKcmyk(66.1%, 0%, 79%, 51.4%)
CIE-LABlab(45.61, -43.29, 43.06)
CIE-LCHlch(45.61, 61.07, 135.15°)
OKLaboklab(51.69% -0.1185 0.0966)
OKLCHoklch(51.69% 0.153 140.8)
XYZxyz(8.3485, 14.9813, 3.4288)
Luminance0.1498 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C1A #6C1A7C
analogous
#5B7C1A #2A7C1A #1A7C3B
triadic
#2A7C1A #1A2A7C #7C1A2A
tetradic
#2A7C1A #1A5B7C #6C1A7C #7C3B1A
square
#2A7C1A #1A5B7C #6C1A7C #7C3B1A
split-complementary
#2A7C1A #3B1A7C #7C1A5B
monochromatic
#091905 #19490F #2A7C1A #3BAF25 #54D63B

Accessibility & contrast

On white

5.25
#2A7C1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2A7C1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C1A
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C1A#FFFFFF#000000##FFFFFF
##2A7C1A1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7004
Deuteranopia (green-blind)
#766925
Tritanopia (blue-blind)
#1C7869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c1a;
/* rgb */ color: rgb(42, 124, 26);
/* oklch */ color: oklch(51.7% 0.153 140.8);
Tailwind
colors: {
  custom: {
    50: '#6fa35e',
    500: '#2a7c1a',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c1a;
$custom-light: #6fa35e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c1a",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 26
  },
  "hsl": {
    "h": 110.204,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51685,
    "c": 0.15284,
    "h": 140.8
  },
  "luminance": 0.14982
}

Semantic roles & 50–950 ramp

primary
#2A7C1A
secondary
#9E42B0
accent
#40E8CD
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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