#2A7D20#2A7D20

#2A7D20 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.150 H 141.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2A7D20
RGBrgb(42, 125, 32)
HSLhsl(114, 59%, 31%)
HSVhsv(114, 74%, 49%)
CMYKcmyk(66.4%, 0%, 74.4%, 51%)
CIE-LABlab(45.99, -43.19, 41.17)
CIE-LCHlch(45.99, 59.67, 136.37°)
OKLaboklab(52.02% -0.1178 0.0935)
OKLCHoklch(52.02% 0.15 141.6)
XYZxyz(8.5487, 15.2629, 3.8617)
Luminance0.1526 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D20 #73207D
analogous
#587D20 #2A7D20 #207D44
triadic
#2A7D20 #202A7D #7D202A
tetradic
#2A7D20 #20587D #73207D #7D4420
square
#2A7D20 #20587D #73207D #7D4420
split-complementary
#2A7D20 #44207D #7D2058
monochromatic
#091C07 #1A4C14 #2A7D20 #3AAE2C #56D047

Accessibility & contrast

On white

5.18
#2A7D20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2A7D20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D20
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D20#FFFFFF#000000##FFFFFF
##2A7D201.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807110
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#1B796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d20;
/* rgb */ color: rgb(42, 125, 32);
/* oklch */ color: oklch(52.0% 0.150 141.6);
Tailwind
colors: {
  custom: {
    50: '#6fa362',
    500: '#2a7d20',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d20;
$custom-light: #6fa362;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d20",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 32
  },
  "hsl": {
    "h": 113.548,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52016,
    "c": 0.1504,
    "h": 141.6
  },
  "luminance": 0.15264
}

Semantic roles & 50–950 ramp

primary
#2A7D20
secondary
#A549B0
accent
#45E2D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7D20

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

Preview Lab → · Contrast checker → · Palette generator →

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