#2A7420#2A7420

#2A7420 is a mid, vivid green. Relative luminance 0.131; OKLCH L 49.5% C 0.139 H 141.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#2A7420
RGBrgb(42, 116, 32)
HSLhsl(113, 57%, 29%)
HSVhsv(113, 72%, 45%)
CMYKcmyk(63.8%, 0%, 72.4%, 54.5%)
CIE-LABlab(42.89, -39.77, 37.95)
CIE-LCHlch(42.89, 54.97, 136.34°)
OKLaboklab(49.45% -0.1086 0.0867)
OKLCHoklch(49.45% 0.139 141.4)
XYZxyz(7.4606, 13.0866, 3.4990)
Luminance0.1309 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7420 #6A2074
analogous
#547420 #2A7420 #207440
triadic
#2A7420 #202A74 #74202A
tetradic
#2A7420 #205474 #6A2074 #744020
square
#2A7420 #205474 #6A2074 #744020
split-complementary
#2A7420 #402074 #742054
monochromatic
#091807 #194413 #2A7420 #3BA42D #53CB43

Accessibility & contrast

On white

5.81
#2A7420 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#2A7420 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7420
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7420#FFFFFF#000000##FFFFFF
##2A74201.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776913
Deuteranopia (green-blind)
#6E6328
Tritanopia (blue-blind)
#1E7063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2a7420;
/* rgb */ color: rgb(42, 116, 32);
/* oklch */ color: oklch(49.5% 0.139 141.4);
Tailwind
colors: {
  custom: {
    50: '#6d9d60',
    500: '#2a7420',
    950: '#000000',
  },
}
SCSS
$custom: #2a7420;
$custom-light: #6d9d60;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7420",
  "rgb": {
    "r": 42,
    "g": 116,
    "b": 32
  },
  "hsl": {
    "h": 112.857,
    "s": 56.757,
    "l": 29.02
  },
  "oklch": {
    "l": 0.49453,
    "c": 0.13898,
    "h": 141.4
  },
  "luminance": 0.13087
}

Semantic roles & 50–950 ramp

primary
#2A7420
secondary
#9C48A8
accent
#48E0CE
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A7420

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

Preview Lab → · Contrast checker → · Palette generator →

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