#2A7D26#2A7D26

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

Color values

HEX#2A7D26
RGBrgb(42, 125, 38)
HSLhsl(117, 53%, 32%)
HSVhsv(117, 70%, 49%)
CMYKcmyk(66.4%, 0%, 69.6%, 51%)
CIE-LABlab(46.04, -42.62, 38.69)
CIE-LCHlch(46.04, 57.56, 137.76°)
OKLaboklab(52.07% -0.116 0.0891)
OKLCHoklch(52.07% 0.146 142.5)
XYZxyz(8.6378, 15.2986, 4.3311)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D26 #79267D
analogous
#567D26 #2A7D26 #267D4D
triadic
#2A7D26 #262A7D #7D262A
tetradic
#2A7D26 #26567D #79267D #7D4D26
square
#2A7D26 #26567D #79267D #7D4D26
split-complementary
#2A7D26 #4D267D #7D2656
monochromatic
#0A1F09 #1A4E18 #2A7D26 #3AAC34 #58CB53

Accessibility & contrast

On white

5.17
#2A7D26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2A7D26 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D26
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D26#FFFFFF#000000##FFFFFF
##2A7D261.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80711A
Deuteranopia (green-blind)
#766A2E
Tritanopia (blue-blind)
#19796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d26;
/* rgb */ color: rgb(42, 125, 38);
/* oklch */ color: oklch(52.1% 0.146 142.5);
Tailwind
colors: {
  custom: {
    50: '#6fa365',
    500: '#2a7d26',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d26;
$custom-light: #6fa365;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d26",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 38
  },
  "hsl": {
    "h": 117.241,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.52071,
    "c": 0.14621,
    "h": 142.5
  },
  "luminance": 0.15299
}

Semantic roles & 50–950 ramp

primary
#2A7D26
secondary
#AB50AF
accent
#4BDDD6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7D26

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

Preview Lab → · Contrast checker → · Palette generator →

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