#2A7C20#2A7C20

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

Color values

HEX#2A7C20
RGBrgb(42, 124, 32)
HSLhsl(113, 59%, 31%)
HSVhsv(113, 74%, 49%)
CMYKcmyk(66.1%, 0%, 74.2%, 51.4%)
CIE-LABlab(45.65, -42.81, 40.82)
CIE-LCHlch(45.65, 59.15, 136.37°)
OKLaboklab(51.73% -0.1168 0.0927)
OKLCHoklch(51.73% 0.149 141.6)
XYZxyz(8.4228, 15.0110, 3.8198)
Luminance0.1501 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C20 #72207C
analogous
#587C20 #2A7C20 #207C44
triadic
#2A7C20 #202A7C #7C202A
tetradic
#2A7C20 #20587C #72207C #7C4420
square
#2A7C20 #20587C #72207C #7C4420
split-complementary
#2A7C20 #44207C #7C2058
monochromatic
#091B07 #1A4B13 #2A7C20 #3AAD2D #56CF47

Accessibility & contrast

On white

5.25
#2A7C20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2A7C20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C20
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C20#FFFFFF#000000##FFFFFF
##2A7C201.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7011
Deuteranopia (green-blind)
#756A29
Tritanopia (blue-blind)
#1B786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c20;
/* rgb */ color: rgb(42, 124, 32);
/* oklch */ color: oklch(51.7% 0.149 141.6);
Tailwind
colors: {
  custom: {
    50: '#6fa361',
    500: '#2a7c20',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c20;
$custom-light: #6fa361;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c20",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 32
  },
  "hsl": {
    "h": 113.478,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51732,
    "c": 0.14916,
    "h": 141.6
  },
  "luminance": 0.15012
}

Semantic roles & 50–950 ramp

primary
#2A7C20
secondary
#A449AF
accent
#46E2D1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7C20

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

Preview Lab → · Contrast checker → · Palette generator →

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