#2A7A26#2A7A26

#2A7A26 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.142 H 142.5°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2A7A26
RGBrgb(42, 122, 38)
HSLhsl(117, 53%, 31%)
HSVhsv(117, 69%, 48%)
CMYKcmyk(65.6%, 0%, 68.9%, 52.2%)
CIE-LABlab(45.01, -41.48, 37.58)
CIE-LCHlch(45.01, 55.97, 137.82°)
OKLaboklab(51.22% -0.1129 0.0867)
OKLCHoklch(51.22% 0.142 142.5)
XYZxyz(8.2638, 14.5504, 4.2064)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A26 #76267A
analogous
#547A26 #2A7A26 #267A4C
triadic
#2A7A26 #262A7A #7A262A
tetradic
#2A7A26 #26547A #76267A #7A4C26
square
#2A7A26 #26547A #76267A #7A4C26
split-complementary
#2A7A26 #4C267A #7A2654
monochromatic
#0A1D09 #1A4B17 #2A7A26 #3AA935 #57C951

Accessibility & contrast

On white

5.37
#2A7A26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2A7A26 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A26
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A26#FFFFFF#000000##FFFFFF
##2A7A261.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1B
Deuteranopia (green-blind)
#73682E
Tritanopia (blue-blind)
#1B7669
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a26;
/* rgb */ color: rgb(42, 122, 38);
/* oklch */ color: oklch(51.2% 0.142 142.5);
Tailwind
colors: {
  custom: {
    50: '#6ea165',
    500: '#2a7a26',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a26;
$custom-light: #6ea165;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a26",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 38
  },
  "hsl": {
    "h": 117.143,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.51221,
    "c": 0.14234,
    "h": 142.5
  },
  "luminance": 0.14551
}

Semantic roles & 50–950 ramp

primary
#2A7A26
secondary
#A850AC
accent
#4CDCD5
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7A26

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

Preview Lab → · Contrast checker → · Palette generator →

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