#2A7820#2A7820

#2A7820 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.6% C 0.144 H 141.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#2A7820
RGBrgb(42, 120, 32)
HSLhsl(113, 58%, 30%)
HSVhsv(113, 73%, 47%)
CMYKcmyk(65%, 0%, 73.3%, 52.9%)
CIE-LABlab(44.27, -41.31, 39.40)
CIE-LCHlch(44.27, 57.08, 136.35°)
OKLaboklab(50.59% -0.1128 0.0898)
OKLCHoklch(50.59% 0.144 141.5)
XYZxyz(7.9316, 14.0287, 3.6560)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7820 #6E2078
analogous
#567820 #2A7820 #207842
triadic
#2A7820 #202A78 #78202A
tetradic
#2A7820 #205678 #6E2078 #784220
square
#2A7820 #205678 #6E2078 #784220
split-complementary
#2A7820 #422078 #782056
monochromatic
#081806 #194813 #2A7820 #3BA82D #54CD45

Accessibility & contrast

On white

5.52
#2A7820 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#2A7820 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7820
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7820#FFFFFF#000000##FFFFFF
##2A78201.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D12
Deuteranopia (green-blind)
#726629
Tritanopia (blue-blind)
#1D7467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7820;
/* rgb */ color: rgb(42, 120, 32);
/* oklch */ color: oklch(50.6% 0.144 141.5);
Tailwind
colors: {
  custom: {
    50: '#6ea061',
    500: '#2a7820',
    950: '#000000',
  },
}
SCSS
$custom: #2a7820;
$custom-light: #6ea061;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7820",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 32
  },
  "hsl": {
    "h": 113.182,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50594,
    "c": 0.14412,
    "h": 141.5
  },
  "luminance": 0.14029
}

Semantic roles & 50–950 ramp

primary
#2A7820
secondary
#A048AB
accent
#47E1D0
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2A7820

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

Preview Lab → · Contrast checker → · Palette generator →

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