#2A6731#2A6731

#2A6731 is a mid, moderate green. Relative luminance 0.104; OKLCH L 46.0% C 0.106 H 145.8°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2A6731
RGBrgb(42, 103, 49)
HSLhsl(127, 42%, 28%)
HSVhsv(127, 59%, 40%)
CMYKcmyk(59.2%, 0%, 52.4%, 59.6%)
CIE-LABlab(38.58, -32.26, 24.54)
CIE-LCHlch(38.58, 40.53, 142.74°)
OKLaboklab(45.96% -0.0874 0.0594)
OKLCHoklch(45.96% 0.106 145.8)
XYZxyz(6.3591, 10.4139, 4.5801)
Luminance0.1041 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6731 #672A60
analogous
#41672A #2A6731 #2A674F
triadic
#2A6731 #312A67 #67312A
tetradic
#2A6731 #2A4167 #672A60 #674F2A
square
#2A6731 #2A4167 #672A60 #674F2A
split-complementary
#2A6731 #4F2A67 #672A41
monochromatic
#09160A #183C1C #2A6731 #3C9246 #53B95E

Accessibility & contrast

On white

6.81
#2A6731 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2A6731 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6731
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6731#FFFFFF#000000##FFFFFF
##2A67311.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695E2C
Deuteranopia (green-blind)
#605935
Tritanopia (blue-blind)
#1E655A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a6731;
/* rgb */ color: rgb(42, 103, 49);
/* oklch */ color: oklch(46.0% 0.106 145.8);
Tailwind
colors: {
  custom: {
    50: '#6a936a',
    500: '#2a6731',
    950: '#000000',
  },
}
SCSS
$custom: #2a6731;
$custom-light: #6a936a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6731",
  "rgb": {
    "r": 42,
    "g": 103,
    "b": 49
  },
  "hsl": {
    "h": 126.885,
    "s": 42.069,
    "l": 28.431
  },
  "oklch": {
    "l": 0.45955,
    "c": 0.10569,
    "h": 145.8
  },
  "luminance": 0.10414
}

Semantic roles & 50–950 ramp

primary
#2A6731
secondary
#995491
accent
#56C4D2
background
#F6F9F6
surface
#EBF1EB
border
#C6CBC6
text
#070D06
muted
#7A7E7A

Preview Lab

Preview with #2A6731

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

Preview Lab → · Contrast checker → · Palette generator →

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