#2A7E1F#2A7E1F

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

Color values

HEX#2A7E1F
RGBrgb(42, 126, 31)
HSLhsl(113, 61%, 31%)
HSVhsv(113, 75%, 49%)
CMYKcmyk(66.7%, 0%, 75.4%, 50.6%)
CIE-LABlab(46.33, -43.64, 41.91)
CIE-LCHlch(46.33, 60.51, 136.16°)
OKLaboklab(52.29% -0.1191 0.0949)
OKLCHoklch(52.29% 0.152 141.5)
XYZxyz(8.6626, 15.5120, 3.8337)
Luminance0.1551 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E1F #731F7E
analogous
#597E1F #2A7E1F #1F7E43
triadic
#2A7E1F #1F2A7E #7E1F2A
tetradic
#2A7E1F #1F597E #731F7E #7E431F
square
#2A7E1F #1F597E #731F7E #7E431F
split-complementary
#2A7E1F #431F7E #7E1F59
monochromatic
#091C07 #1A4D13 #2A7E1F #3AAF2B #56D146

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7E1F#FFFFFF#000000##FFFFFF
##2A7E1F1.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)
#81720E
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#1A7A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e1f;
/* rgb */ color: rgb(42, 126, 31);
/* oklch */ color: oklch(52.3% 0.152 141.5);
Tailwind
colors: {
  custom: {
    50: '#70a461',
    500: '#2a7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e1f;
$custom-light: #70a461;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e1f",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 113.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52291,
    "c": 0.15229,
    "h": 141.5
  },
  "luminance": 0.15513
}

Semantic roles & 50–950 ramp

primary
#2A7E1F
secondary
#A548B1
accent
#44E4D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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