#2A7228#2A7228

#2A7228 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.130 H 142.9°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#2A7228
RGBrgb(42, 114, 40)
HSLhsl(118, 48%, 30%)
HSVhsv(118, 65%, 45%)
CMYKcmyk(63.2%, 0%, 64.9%, 55.3%)
CIE-LABlab(42.28, -38.12, 33.62)
CIE-LCHlch(42.28, 50.83, 138.59°)
OKLaboklab(48.97% -0.1037 0.0785)
OKLCHoklch(48.97% 0.13 142.9)
XYZxyz(7.3548, 12.6794, 4.0669)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7228 #702872
analogous
#4F7228 #2A7228 #28724B
triadic
#2A7228 #282A72 #72282A
tetradic
#2A7228 #284F72 #702872 #724B28
square
#2A7228 #284F72 #702872 #724B28
split-complementary
#2A7228 #4B2872 #72284F
monochromatic
#091708 #194518 #2A7228 #3B9F38 #55C252

Accessibility & contrast

On white

5.94
#2A7228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2A7228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7228
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7228#FFFFFF#000000##FFFFFF
##2A72281.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756820
Deuteranopia (green-blind)
#6B612E
Tritanopia (blue-blind)
#1D6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7228;
/* rgb */ color: rgb(42, 114, 40);
/* oklch */ color: oklch(49.0% 0.130 142.9);
Tailwind
colors: {
  custom: {
    50: '#6d9b65',
    500: '#2a7228',
    950: '#000000',
  },
}
SCSS
$custom: #2a7228;
$custom-light: #6d9b65;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7228",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 40
  },
  "hsl": {
    "h": 118.378,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.48967,
    "c": 0.13006,
    "h": 142.9
  },
  "luminance": 0.1268
}

Semantic roles & 50–950 ramp

primary
#2A7228
secondary
#A252A4
accent
#50D8D4
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #2A7228

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

Preview Lab → · Contrast checker → · Palette generator →

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