#2A7C29#2A7C29

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

Color values

HEX#2A7C29
RGBrgb(42, 124, 41)
HSLhsl(119, 50%, 32%)
HSVhsv(119, 67%, 49%)
CMYKcmyk(66.1%, 0%, 66.9%, 51.4%)
CIE-LABlab(45.73, -41.92, 37.00)
CIE-LCHlch(45.73, 55.91, 138.57°)
OKLaboklab(51.82% -0.1139 0.0858)
OKLCHoklch(51.82% 0.143 143)
XYZxyz(8.5622, 15.0668, 4.5543)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C29 #7B297C
analogous
#547C29 #2A7C29 #297C51
triadic
#2A7C29 #292A7C #7C292A
tetradic
#2A7C29 #29547C #7B297C #7C5129
square
#2A7C29 #29547C #7B297C #7C5129
split-complementary
#2A7C29 #51297C #7C2954
monochromatic
#0B200B #1A4E1A #2A7C29 #3AAA38 #59C858

Accessibility & contrast

On white

5.23
#2A7C29 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2A7C29 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C29
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C29#FFFFFF#000000##FFFFFF
##2A7C291.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F701F
Deuteranopia (green-blind)
#756A30
Tritanopia (blue-blind)
#19786B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c29;
/* rgb */ color: rgb(42, 124, 41);
/* oklch */ color: oklch(51.8% 0.143 143.0);
Tailwind
colors: {
  custom: {
    50: '#6fa367',
    500: '#2a7c29',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c29;
$custom-light: #6fa367;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c29",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 41
  },
  "hsl": {
    "h": 119.277,
    "s": 50.303,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5182,
    "c": 0.14262,
    "h": 143
  },
  "luminance": 0.15068
}

Semantic roles & 50–950 ramp

primary
#2A7C29
secondary
#AC54AD
accent
#4EDAD8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7C29

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

Preview Lab → · Contrast checker → · Palette generator →

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