#2A7829#2A7829

#2A7829 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.137 H 143.0°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#2A7829
RGBrgb(42, 120, 41)
HSLhsl(119, 49%, 32%)
HSVhsv(119, 66%, 47%)
CMYKcmyk(65%, 0%, 65.8%, 52.9%)
CIE-LABlab(44.35, -40.38, 35.48)
CIE-LCHlch(44.35, 53.75, 138.70°)
OKLaboklab(50.69% -0.1097 0.0826)
OKLCHoklch(50.69% 0.137 143)
XYZxyz(8.0711, 14.0845, 4.3906)
Luminance0.1409 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7829 #772978
analogous
#527829 #2A7829 #297850
triadic
#2A7829 #292A78 #78292A
tetradic
#2A7829 #295278 #772978 #785029
square
#2A7829 #295278 #772978 #785029
split-complementary
#2A7829 #502978 #782952
monochromatic
#0A1D0A #1A4A19 #2A7829 #3AA639 #58C556

Accessibility & contrast

On white

5.50
#2A7829 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#2A7829 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7829
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7829#FFFFFF#000000##FFFFFF
##2A78291.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D20
Deuteranopia (green-blind)
#716630
Tritanopia (blue-blind)
#1B7567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7829;
/* rgb */ color: rgb(42, 120, 41);
/* oklch */ color: oklch(50.7% 0.137 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ea066',
    500: '#2a7829',
    950: '#000000',
  },
}
SCSS
$custom: #2a7829;
$custom-light: #6ea066;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7829",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 41
  },
  "hsl": {
    "h": 119.241,
    "s": 49.068,
    "l": 31.569
  },
  "oklch": {
    "l": 0.50686,
    "c": 0.13733,
    "h": 143
  },
  "luminance": 0.14085
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7829

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

Preview Lab → · Contrast checker → · Palette generator →

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