#2A7331#2A7331

#2A7331 is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.4% C 0.123 H 145.1°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#2A7331
RGBrgb(42, 115, 49)
HSLhsl(126, 46%, 31%)
HSVhsv(126, 63%, 45%)
CMYKcmyk(63.5%, 0%, 57.4%, 54.9%)
CIE-LABlab(42.73, -37.34, 29.60)
CIE-LCHlch(42.73, 47.65, 141.60°)
OKLaboklab(49.37% -0.1011 0.0706)
OKLCHoklch(49.37% 0.123 145.1)
XYZxyz(7.6395, 12.9747, 5.0069)
Luminance0.1298 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7331 #732A6C
analogous
#47732A #2A7331 #2A7355
triadic
#2A7331 #312A73 #73312A
tetradic
#2A7331 #2A4773 #732A6C #73552A
square
#2A7331 #2A4773 #732A6C #73552A
split-complementary
#2A7331 #552A73 #732A47
monochromatic
#09190B #1A461E #2A7331 #3AA044 #56C160

Accessibility & contrast

On white

5.84
#2A7331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#2A7331 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7331
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7331#FFFFFF#000000##FFFFFF
##2A73311.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75692B
Deuteranopia (green-blind)
#6C6236
Tritanopia (blue-blind)
#1A7064
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2a7331;
/* rgb */ color: rgb(42, 115, 49);
/* oklch */ color: oklch(49.4% 0.123 145.1);
Tailwind
colors: {
  custom: {
    50: '#6c9c6b',
    500: '#2a7331',
    950: '#000000',
  },
}
SCSS
$custom: #2a7331;
$custom-light: #6c9c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7331",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 49
  },
  "hsl": {
    "h": 125.753,
    "s": 46.497,
    "l": 30.784
  },
  "oklch": {
    "l": 0.49371,
    "c": 0.12337,
    "h": 145.1
  },
  "luminance": 0.12975
}

Semantic roles & 50–950 ramp

primary
#2A7331
secondary
#A5549D
accent
#52C9D6
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #2A7331

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

Preview Lab → · Contrast checker → · Palette generator →

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