#2A7E1B#2A7E1B

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

Color values

HEX#2A7E1B
RGBrgb(42, 126, 27)
HSLhsl(111, 65%, 30%)
HSVhsv(111, 79%, 49%)
CMYKcmyk(66.7%, 0%, 78.6%, 50.6%)
CIE-LABlab(46.30, -43.96, 43.38)
CIE-LCHlch(46.30, 61.76, 135.38°)
OKLaboklab(52.26% -0.1202 0.0974)
OKLCHoklch(52.26% 0.155 141)
XYZxyz(8.6131, 15.4922, 3.5731)
Luminance0.1549 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E1B #6F1B7E
analogous
#5C7E1B #2A7E1B #1B7E3D
triadic
#2A7E1B #1B2A7E #7E1B2A
tetradic
#2A7E1B #1B5C7E #6F1B7E #7E3D1B
square
#2A7E1B #1B5C7E #6F1B7E #7E3D1B
split-complementary
#2A7E1B #3D1B7E #7E1B5C
monochromatic
#081905 #194C10 #2A7E1B #3BB026 #55D63E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7E1B#FFFFFF#000000##FFFFFF
##2A7E1B1.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)
#817205
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#1B7A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e1b;
/* rgb */ color: rgb(42, 126, 27);
/* oklch */ color: oklch(52.3% 0.155 141.0);
Tailwind
colors: {
  custom: {
    50: '#70a45f',
    500: '#2a7e1b',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e1b;
$custom-light: #70a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e1b",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 110.909,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.52261,
    "c": 0.1547,
    "h": 141
  },
  "luminance": 0.15493
}

Semantic roles & 50–950 ramp

primary
#2A7E1B
secondary
#A143B2
accent
#40E8CE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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