#2A7D1D#2A7D1D

#2A7D1D is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.0% C 0.152 H 141.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2A7D1D
RGBrgb(42, 125, 29)
HSLhsl(112, 62%, 30%)
HSVhsv(112, 77%, 49%)
CMYKcmyk(66.4%, 0%, 76.8%, 51%)
CIE-LABlab(45.97, -43.44, 42.32)
CIE-LCHlch(45.97, 60.64, 135.75°)
OKLaboklab(51.99% -0.1187 0.0954)
OKLCHoklch(51.99% 0.152 141.2)
XYZxyz(8.5098, 15.2473, 3.6567)
Luminance0.1525 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D1D #701D7D
analogous
#5A7D1D #2A7D1D #1D7D40
triadic
#2A7D1D #1D2A7D #7D1D2A
tetradic
#2A7D1D #1D5A7D #701D7D #7D401D
square
#2A7D1D #1D5A7D #701D7D #7D401D
split-complementary
#2A7D1D #401D7D #7D1D5A
monochromatic
#091A06 #194B11 #2A7D1D #3BAF29 #55D341

Accessibility & contrast

On white

5.19
#2A7D1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A7D1D
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D1D#FFFFFF#000000##FFFFFF
##2A7D1D1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710A
Deuteranopia (green-blind)
#766A27
Tritanopia (blue-blind)
#1B796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d1d;
/* rgb */ color: rgb(42, 125, 29);
/* oklch */ color: oklch(52.0% 0.152 141.2);
Tailwind
colors: {
  custom: {
    50: '#70a360',
    500: '#2a7d1d',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d1d;
$custom-light: #70a360;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d1d",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 111.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51992,
    "c": 0.1523,
    "h": 141.2
  },
  "luminance": 0.15248
}

Semantic roles & 50–950 ramp

primary
#2A7D1D
secondary
#A245B1
accent
#42E5CF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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