#2A7334#2A7334

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

Color values

HEX#2A7334
RGBrgb(42, 115, 52)
HSLhsl(128, 46%, 31%)
HSVhsv(128, 63%, 45%)
CMYKcmyk(63.5%, 0%, 54.8%, 54.9%)
CIE-LABlab(42.76, -36.90, 28.06)
CIE-LCHlch(42.76, 46.36, 142.75°)
OKLaboklab(49.42% -0.0998 0.0675)
OKLCHoklch(49.42% 0.12 146)
XYZxyz(7.7049, 13.0009, 5.3515)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7334 #732A69
analogous
#44732A #2A7334 #2A7358
triadic
#2A7334 #342A73 #73342A
tetradic
#2A7334 #2A4473 #732A69 #73582A
square
#2A7334 #2A4473 #732A69 #73582A
split-complementary
#2A7334 #582A73 #732A44
monochromatic
#09190B #1A4620 #2A7334 #3AA048 #56C165

Accessibility & contrast

On white

5.83
#2A7334 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A7334
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7334#FFFFFF#000000##FFFFFF
##2A73341.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75692E
Deuteranopia (green-blind)
#6B6239
Tritanopia (blue-blind)
#197065
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2a7334;
/* rgb */ color: rgb(42, 115, 52);
/* oklch */ color: oklch(49.4% 0.120 146.0);
Tailwind
colors: {
  custom: {
    50: '#6c9c6d',
    500: '#2a7334',
    950: '#000000',
  },
}
SCSS
$custom: #2a7334;
$custom-light: #6c9c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7334",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 52
  },
  "hsl": {
    "h": 128.219,
    "s": 46.497,
    "l": 30.784
  },
  "oklch": {
    "l": 0.49416,
    "c": 0.12049,
    "h": 146
  },
  "luminance": 0.13002
}

Semantic roles & 50–950 ramp

primary
#2A7334
secondary
#A5549A
accent
#52C4D6
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #2A7334

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

Preview Lab → · Contrast checker → · Palette generator →

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