#2A7928#2A7928

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

Color values

HEX#2A7928
RGBrgb(42, 121, 40)
HSLhsl(119, 50%, 32%)
HSVhsv(119, 67%, 47%)
CMYKcmyk(65.3%, 0%, 66.9%, 52.5%)
CIE-LABlab(44.69, -40.88, 36.31)
CIE-LCHlch(44.69, 54.68, 138.38°)
OKLaboklab(50.96% -0.1111 0.0843)
OKLCHoklch(50.96% 0.139 142.8)
XYZxyz(8.1748, 14.3194, 4.3402)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7928 #772879
analogous
#537928 #2A7928 #28794F
triadic
#2A7928 #282A79 #79282A
tetradic
#2A7928 #285379 #772879 #794F28
square
#2A7928 #285379 #772879 #794F28
split-complementary
#2A7928 #4F2879 #792853
monochromatic
#0A1D0A #1A4B19 #2A7928 #3AA737 #58C755

Accessibility & contrast

On white

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

On black

3.86
#2A7928 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A7928#FFFFFF#000000##FFFFFF
##2A79281.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1E
Deuteranopia (green-blind)
#72672F
Tritanopia (blue-blind)
#1A7568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7928;
/* rgb */ color: rgb(42, 121, 40);
/* oklch */ color: oklch(51.0% 0.139 142.8);
Tailwind
colors: {
  custom: {
    50: '#6ea066',
    500: '#2a7928',
    950: '#000000',
  },
}
SCSS
$custom: #2a7928;
$custom-light: #6ea066;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7928",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 40
  },
  "hsl": {
    "h": 118.519,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.50958,
    "c": 0.13947,
    "h": 142.8
  },
  "luminance": 0.1432
}

Semantic roles & 50–950 ramp

primary
#2A7928
secondary
#A952AB
accent
#4EDAD6
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2A7928

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

Preview Lab → · Contrast checker → · Palette generator →

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