#2A6728#2A6728

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

Color values

HEX#2A6728
RGBrgb(42, 103, 40)
HSLhsl(118, 44%, 28%)
HSVhsv(118, 61%, 40%)
CMYKcmyk(59.2%, 0%, 61.2%, 59.6%)
CIE-LABlab(38.46, -33.58, 29.24)
CIE-LCHlch(38.46, 44.52, 138.95°)
OKLaboklab(45.82% -0.0914 0.0691)
OKLCHoklch(45.82% 0.115 142.9)
XYZxyz(6.1878, 10.3454, 3.6779)
Luminance0.1035 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6728 #652867
analogous
#496728 #2A6728 #286745
triadic
#2A6728 #282A67 #67282A
tetradic
#2A6728 #284967 #652867 #674528
square
#2A6728 #284967 #652867 #674528
split-complementary
#2A6728 #452867 #672849
monochromatic
#091609 #183B17 #2A6728 #3C9339 #52BB4F

Accessibility & contrast

On white

6.84
#2A6728 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A6728
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6728#FFFFFF#000000##FFFFFF
##2A67281.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695E22
Deuteranopia (green-blind)
#61582D
Tritanopia (blue-blind)
#216459
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a6728;
/* rgb */ color: rgb(42, 103, 40);
/* oklch */ color: oklch(45.8% 0.115 142.9);
Tailwind
colors: {
  custom: {
    50: '#6a9364',
    500: '#2a6728',
    950: '#000000',
  },
}
SCSS
$custom: #2a6728;
$custom-light: #6a9364;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6728",
  "rgb": {
    "r": 42,
    "g": 103,
    "b": 40
  },
  "hsl": {
    "h": 118.095,
    "s": 44.056,
    "l": 28.039
  },
  "oklch": {
    "l": 0.45817,
    "c": 0.11455,
    "h": 142.9
  },
  "luminance": 0.10346
}

Semantic roles & 50–950 ramp

primary
#2A6728
secondary
#97519A
accent
#54D4D0
background
#F6F9F6
surface
#EBF1EB
border
#C6CBC6
text
#070D05
muted
#7A7E7A

Preview Lab

Preview with #2A6728

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

Preview Lab → · Contrast checker → · Palette generator →

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