#2A7626#2A7626

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

Color values

HEX#2A7626
RGBrgb(42, 118, 38)
HSLhsl(117, 51%, 31%)
HSVhsv(117, 68%, 46%)
CMYKcmyk(64.4%, 0%, 67.8%, 53.7%)
CIE-LABlab(43.64, -39.93, 36.08)
CIE-LCHlch(43.64, 53.82, 137.90°)
OKLaboklab(50.08% -0.1087 0.0835)
OKLCHoklch(50.08% 0.137 142.5)
XYZxyz(7.7827, 13.5883, 4.0460)
Luminance0.1359 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7626 #722676
analogous
#527626 #2A7626 #26764A
triadic
#2A7626 #262A76 #76262A
tetradic
#2A7626 #265276 #722676 #764A26
square
#2A7626 #265276 #722676 #764A26
split-complementary
#2A7626 #4A2676 #762652
monochromatic
#091908 #1A4817 #2A7626 #3AA435 #56C750

Accessibility & contrast

On white

5.65
#2A7626 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A7626
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7626#FFFFFF#000000##FFFFFF
##2A76261.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B1C
Deuteranopia (green-blind)
#6F652D
Tritanopia (blue-blind)
#1C7265
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2a7626;
/* rgb */ color: rgb(42, 118, 38);
/* oklch */ color: oklch(50.1% 0.137 142.5);
Tailwind
colors: {
  custom: {
    50: '#6d9e64',
    500: '#2a7626',
    950: '#000000',
  },
}
SCSS
$custom: #2a7626;
$custom-light: #6d9e64;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7626",
  "rgb": {
    "r": 42,
    "g": 118,
    "b": 38
  },
  "hsl": {
    "h": 117,
    "s": 51.282,
    "l": 30.588
  },
  "oklch": {
    "l": 0.50084,
    "c": 0.13709,
    "h": 142.5
  },
  "luminance": 0.13589
}

Semantic roles & 50–950 ramp

primary
#2A7626
secondary
#A44FA8
accent
#4DDBD4
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #2A7626

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

Preview Lab → · Contrast checker → · Palette generator →

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