#2A7929#2A7929

#2A7929 is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.139 H 143.0°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#2A7929
RGBrgb(42, 121, 41)
HSLhsl(119, 49%, 32%)
HSVhsv(119, 66%, 47%)
CMYKcmyk(65.3%, 0%, 66.1%, 52.5%)
CIE-LABlab(44.70, -40.76, 35.86)
CIE-LCHlch(44.70, 54.29, 138.66°)
OKLaboklab(50.97% -0.1108 0.0834)
OKLCHoklch(50.97% 0.139 143)
XYZxyz(8.1920, 14.3263, 4.4309)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7929 #782979
analogous
#527929 #2A7929 #297950
triadic
#2A7929 #292A79 #79292A
tetradic
#2A7929 #295279 #782979 #795029
square
#2A7929 #295279 #782979 #795029
split-complementary
#2A7929 #502979 #792952
monochromatic
#0A1E0A #1A4B1A #2A7929 #3AA738 #58C656

Accessibility & contrast

On white

5.43
#2A7929 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2A7929 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7929
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7929#FFFFFF#000000##FFFFFF
##2A79291.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1F
Deuteranopia (green-blind)
#726730
Tritanopia (blue-blind)
#1A7568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7929;
/* rgb */ color: rgb(42, 121, 41);
/* oklch */ color: oklch(51.0% 0.139 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ea066',
    500: '#2a7929',
    950: '#000000',
  },
}
SCSS
$custom: #2a7929;
$custom-light: #6ea066;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7929",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 41
  },
  "hsl": {
    "h": 119.25,
    "s": 49.383,
    "l": 31.765
  },
  "oklch": {
    "l": 0.5097,
    "c": 0.13866,
    "h": 143
  },
  "luminance": 0.14327
}

Semantic roles & 50–950 ramp

primary
#2A7929
secondary
#AA53AB
accent
#4FD9D7
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2A7929

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

Preview Lab → · Contrast checker → · Palette generator →

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