#2A7628#2A7628

#2A7628 is a mid, vivid green. Relative luminance 0.136; OKLCH L 50.1% C 0.135 H 142.8°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#2A7628
RGBrgb(42, 118, 40)
HSLhsl(118, 49%, 31%)
HSVhsv(118, 66%, 46%)
CMYKcmyk(64.4%, 0%, 66.1%, 53.7%)
CIE-LABlab(43.66, -39.71, 35.17)
CIE-LCHlch(43.66, 53.05, 138.47°)
OKLaboklab(50.11% -0.108 0.0818)
OKLCHoklch(50.11% 0.135 142.8)
XYZxyz(7.8158, 13.6016, 4.2205)
Luminance0.1360 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7628 #742876
analogous
#517628 #2A7628 #28764D
triadic
#2A7628 #282A76 #76282A
tetradic
#2A7628 #285176 #742876 #764D28
square
#2A7628 #285176 #742876 #764D28
split-complementary
#2A7628 #4D2876 #762851
monochromatic
#091B09 #1A4819 #2A7628 #3AA437 #56C554

Accessibility & contrast

On white

5.64
#2A7628 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#2A7628 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7628
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7628#FFFFFF#000000##FFFFFF
##2A76281.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B1F
Deuteranopia (green-blind)
#6F652F
Tritanopia (blue-blind)
#1C7366
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2a7628;
/* rgb */ color: rgb(42, 118, 40);
/* oklch */ color: oklch(50.1% 0.135 142.8);
Tailwind
colors: {
  custom: {
    50: '#6d9e65',
    500: '#2a7628',
    950: '#000000',
  },
}
SCSS
$custom: #2a7628;
$custom-light: #6d9e65;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7628",
  "rgb": {
    "r": 42,
    "g": 118,
    "b": 40
  },
  "hsl": {
    "h": 118.462,
    "s": 49.367,
    "l": 30.98
  },
  "oklch": {
    "l": 0.50106,
    "c": 0.13548,
    "h": 142.8
  },
  "luminance": 0.13602
}

Semantic roles & 50–950 ramp

primary
#2A7628
secondary
#A652A8
accent
#4FD9D5
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #2A7628

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

Preview Lab → · Contrast checker → · Palette generator →

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