#2A7E21#2A7E21

#2A7E21 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.151 H 141.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2A7E21
RGBrgb(42, 126, 33)
HSLhsl(114, 58%, 31%)
HSVhsv(114, 74%, 49%)
CMYKcmyk(66.7%, 0%, 73.8%, 50.6%)
CIE-LABlab(46.34, -43.47, 41.13)
CIE-LCHlch(46.34, 59.84, 136.58°)
OKLaboklab(52.31% -0.1185 0.0935)
OKLCHoklch(52.31% 0.151 141.7)
XYZxyz(8.6897, 15.5229, 3.9768)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E21 #75217E
analogous
#587E21 #2A7E21 #217E46
triadic
#2A7E21 #212A7E #7E212A
tetradic
#2A7E21 #21587E #75217E #7E4621
square
#2A7E21 #21587E #75217E #7E4621
split-complementary
#2A7E21 #46217E #7E2158
monochromatic
#0A1D08 #1A4E14 #2A7E21 #3AAE2E #57D04A

Accessibility & contrast

On white

5.12
#2A7E21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2A7E21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E21
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E21#FFFFFF#000000##FFFFFF
##2A7E211.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817212
Deuteranopia (green-blind)
#776B2A
Tritanopia (blue-blind)
#1A7A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e21;
/* rgb */ color: rgb(42, 126, 33);
/* oklch */ color: oklch(52.3% 0.151 141.7);
Tailwind
colors: {
  custom: {
    50: '#70a462',
    500: '#2a7e21',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e21;
$custom-light: #70a462;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e21",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 114.194,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52308,
    "c": 0.15099,
    "h": 141.7
  },
  "luminance": 0.15524
}

Semantic roles & 50–950 ramp

primary
#2A7E21
secondary
#A74AB1
accent
#46E2D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7E21

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

Preview Lab → · Contrast checker → · Palette generator →

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