#2A821D#2A821D

#2A821D is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.4% C 0.158 H 141.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#2A821D
RGBrgb(42, 130, 29)
HSLhsl(112, 64%, 31%)
HSVhsv(112, 78%, 51%)
CMYKcmyk(67.7%, 0%, 77.7%, 49%)
CIE-LABlab(47.68, -45.26, 44.02)
CIE-LCHlch(47.68, 63.14, 135.80°)
OKLaboklab(53.41% -0.1236 0.099)
OKLCHoklch(53.41% 0.158 141.3)
XYZxyz(9.1588, 16.5453, 3.8731)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A821D #751D82
analogous
#5C821D #2A821D #1D8242
triadic
#2A821D #1D2A82 #821D2A
tetradic
#2A821D #1D5C82 #751D82 #82421D
square
#2A821D #1D5C82 #751D82 #82421D
split-complementary
#2A821D #421D82 #821D5C
monochromatic
#0A1E07 #1A5012 #2A821D #3AB428 #57D544

Accessibility & contrast

On white

4.87
#2A821D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#2A821D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A821D
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A821D#FFFFFF#000000##FFFFFF
##2A821D1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857507
Deuteranopia (green-blind)
#7B6E28
Tritanopia (blue-blind)
#197E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2a821d;
/* rgb */ color: rgb(42, 130, 29);
/* oklch */ color: oklch(53.4% 0.158 141.3);
Tailwind
colors: {
  custom: {
    50: '#71a761',
    500: '#2a821d',
    950: '#000000',
  },
}
SCSS
$custom: #2a821d;
$custom-light: #71a761;
$custom-dark: #000000;
JSON
{
  "hex": "#2a821d",
  "rgb": {
    "r": 42,
    "g": 130,
    "b": 29
  },
  "hsl": {
    "h": 112.277,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53408,
    "c": 0.15837,
    "h": 141.3
  },
  "luminance": 0.16546
}

Semantic roles & 50–950 ramp

primary
#2A821D
secondary
#A746B5
accent
#41E7D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A821D

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

Preview Lab → · Contrast checker → · Palette generator →

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