#2A7520#2A7520

#2A7520 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.7% C 0.140 H 141.4°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#2A7520
RGBrgb(42, 117, 32)
HSLhsl(113, 57%, 29%)
HSVhsv(113, 73%, 46%)
CMYKcmyk(64.1%, 0%, 72.6%, 54.1%)
CIE-LABlab(43.24, -40.16, 38.32)
CIE-LCHlch(43.24, 55.50, 136.34°)
OKLaboklab(49.74% -0.1096 0.0875)
OKLCHoklch(49.74% 0.14 141.4)
XYZxyz(7.5765, 13.3184, 3.5377)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7520 #6B2075
analogous
#557520 #2A7520 #207541
triadic
#2A7520 #202A75 #75202A
tetradic
#2A7520 #205575 #6B2075 #754120
square
#2A7520 #205575 #6B2075 #754120
split-complementary
#2A7520 #412075 #752055
monochromatic
#091807 #194513 #2A7520 #3BA52D #54CC44

Accessibility & contrast

On white

5.73
#2A7520 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#2A7520 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7520
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7520#FFFFFF#000000##FFFFFF
##2A75201.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A13
Deuteranopia (green-blind)
#6F6428
Tritanopia (blue-blind)
#1E7164
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2a7520;
/* rgb */ color: rgb(42, 117, 32);
/* oklch */ color: oklch(49.7% 0.140 141.4);
Tailwind
colors: {
  custom: {
    50: '#6e9d61',
    500: '#2a7520',
    950: '#000000',
  },
}
SCSS
$custom: #2a7520;
$custom-light: #6e9d61;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7520",
  "rgb": {
    "r": 42,
    "g": 117,
    "b": 32
  },
  "hsl": {
    "h": 112.941,
    "s": 57.047,
    "l": 29.216
  },
  "oklch": {
    "l": 0.49738,
    "c": 0.14028,
    "h": 141.4
  },
  "luminance": 0.13319
}

Semantic roles & 50–950 ramp

primary
#2A7520
secondary
#9D48A8
accent
#47E0CE
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A7520

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

Preview Lab → · Contrast checker → · Palette generator →

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