#2A6727#2A6727

#2A6727 is a mid, moderate green. Relative luminance 0.103; OKLCH L 45.8% C 0.115 H 142.6°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2A6727
RGBrgb(42, 103, 39)
HSLhsl(117, 45%, 28%)
HSVhsv(117, 62%, 40%)
CMYKcmyk(59.2%, 0%, 62.1%, 59.6%)
CIE-LABlab(38.44, -33.71, 29.74)
CIE-LCHlch(38.44, 44.95, 138.58°)
OKLaboklab(45.8% -0.0918 0.0701)
OKLCHoklch(45.8% 0.115 142.6)
XYZxyz(6.1710, 10.3387, 3.5894)
Luminance0.1034 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6727 #642767
analogous
#4A6727 #2A6727 #276744
triadic
#2A6727 #272A67 #67272A
tetradic
#2A6727 #274A67 #642767 #674427
square
#2A6727 #274A67 #642767 #674427
split-complementary
#2A6727 #442767 #67274A
monochromatic
#091608 #183B16 #2A6727 #3C9338 #52BC4D

Accessibility & contrast

On white

6.85
#2A6727 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2A6727 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6727
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6727#FFFFFF#000000##FFFFFF
##2A67271.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695E20
Deuteranopia (green-blind)
#61582C
Tritanopia (blue-blind)
#216459
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a6727;
/* rgb */ color: rgb(42, 103, 39);
/* oklch */ color: oklch(45.8% 0.115 142.6);
Tailwind
colors: {
  custom: {
    50: '#6a9363',
    500: '#2a6727',
    950: '#000000',
  },
}
SCSS
$custom: #2a6727;
$custom-light: #6a9363;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6727",
  "rgb": {
    "r": 42,
    "g": 103,
    "b": 39
  },
  "hsl": {
    "h": 117.188,
    "s": 45.07,
    "l": 27.843
  },
  "oklch": {
    "l": 0.45803,
    "c": 0.11548,
    "h": 142.6
  },
  "luminance": 0.10339
}

Semantic roles & 50–950 ramp

primary
#2A6727
secondary
#96509A
accent
#53D5CF
background
#F6F9F6
surface
#EBF1EB
border
#C6CBC6
text
#070D05
muted
#7A7E7A

Preview Lab

Preview with #2A6727

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

Preview Lab → · Contrast checker → · Palette generator →

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