#2A7B1D#2A7B1D

#2A7B1D is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.150 H 141.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#2A7B1D
RGBrgb(42, 123, 29)
HSLhsl(112, 62%, 30%)
HSVhsv(112, 76%, 48%)
CMYKcmyk(65.9%, 0%, 76.4%, 51.8%)
CIE-LABlab(45.28, -42.69, 41.63)
CIE-LCHlch(45.28, 59.63, 135.72°)
OKLaboklab(51.42% -0.1167 0.094)
OKLCHoklch(51.42% 0.15 141.1)
XYZxyz(8.2592, 14.7461, 3.5732)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B1D #6E1D7B
analogous
#597B1D #2A7B1D #1D7B3F
triadic
#2A7B1D #1D2A7B #7B1D2A
tetradic
#2A7B1D #1D597B #6E1D7B #7B3F1D
square
#2A7B1D #1D597B #6E1D7B #7B3F1D
split-complementary
#2A7B1D #3F1D7B #7B1D59
monochromatic
#081906 #194911 #2A7B1D #3BAD29 #55D240

Accessibility & contrast

On white

5.32
#2A7B1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2A7B1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7B1D
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7B1D#FFFFFF#000000##FFFFFF
##2A7B1D1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0B
Deuteranopia (green-blind)
#746927
Tritanopia (blue-blind)
#1C7769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7b1d;
/* rgb */ color: rgb(42, 123, 29);
/* oklch */ color: oklch(51.4% 0.150 141.1);
Tailwind
colors: {
  custom: {
    50: '#6fa260',
    500: '#2a7b1d',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b1d;
$custom-light: #6fa260;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b1d",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 29
  },
  "hsl": {
    "h": 111.702,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51423,
    "c": 0.14983,
    "h": 141.1
  },
  "luminance": 0.14747
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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