#2A7C1D#2A7C1D

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

Color values

HEX#2A7C1D
RGBrgb(42, 124, 29)
HSLhsl(112, 62%, 30%)
HSVhsv(112, 77%, 49%)
CMYKcmyk(66.1%, 0%, 76.6%, 51.4%)
CIE-LABlab(45.63, -43.07, 41.98)
CIE-LCHlch(45.63, 60.14, 135.73°)
OKLaboklab(51.71% -0.1177 0.0947)
OKLCHoklch(51.71% 0.151 141.2)
XYZxyz(8.3838, 14.9954, 3.6147)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C1D #6F1D7C
analogous
#5A7C1D #2A7C1D #1D7C3F
triadic
#2A7C1D #1D2A7C #7C1D2A
tetradic
#2A7C1D #1D5A7C #6F1D7C #7C3F1D
square
#2A7C1D #1D5A7C #6F1D7C #7C3F1D
split-complementary
#2A7C1D #3F1D7C #7C1D5A
monochromatic
#081906 #194A11 #2A7C1D #3BAE29 #55D341

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7C1D#FFFFFF#000000##FFFFFF
##2A7C1D1.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)
#7F700A
Deuteranopia (green-blind)
#756927
Tritanopia (blue-blind)
#1C786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c1d;
/* rgb */ color: rgb(42, 124, 29);
/* oklch */ color: oklch(51.7% 0.151 141.2);
Tailwind
colors: {
  custom: {
    50: '#6fa360',
    500: '#2a7c1d',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c1d;
$custom-light: #6fa360;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c1d",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 29
  },
  "hsl": {
    "h": 111.789,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.51707,
    "c": 0.15107,
    "h": 141.2
  },
  "luminance": 0.14996
}

Semantic roles & 50–950 ramp

primary
#2A7C1D
secondary
#A145B0
accent
#43E5CF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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