#2A7A1F#2A7A1F

#2A7A1F is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.147 H 141.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#2A7A1F
RGBrgb(42, 122, 31)
HSLhsl(113, 59%, 30%)
HSVhsv(113, 75%, 48%)
CMYKcmyk(65.6%, 0%, 74.6%, 52.2%)
CIE-LABlab(44.95, -42.15, 40.51)
CIE-LCHlch(44.95, 58.46, 136.14°)
OKLaboklab(51.15% -0.1151 0.0919)
OKLCHoklch(51.15% 0.147 141.4)
XYZxyz(8.1613, 14.5094, 3.6666)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A1F #6F1F7A
analogous
#587A1F #2A7A1F #1F7A41
triadic
#2A7A1F #1F2A7A #7A1F2A
tetradic
#2A7A1F #1F587A #6F1F7A #7A411F
square
#2A7A1F #1F587A #6F1F7A #7A411F
split-complementary
#2A7A1F #411F7A #7A1F58
monochromatic
#081806 #194913 #2A7A1F #3BAB2B #55CF44

Accessibility & contrast

On white

5.38
#2A7A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#2A7A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A1F
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A1F#FFFFFF#000000##FFFFFF
##2A7A1F1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E0F
Deuteranopia (green-blind)
#736828
Tritanopia (blue-blind)
#1C7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a1f;
/* rgb */ color: rgb(42, 122, 31);
/* oklch */ color: oklch(51.2% 0.147 141.4);
Tailwind
colors: {
  custom: {
    50: '#6fa161',
    500: '#2a7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a1f;
$custom-light: #6fa161;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a1f",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 112.747,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51155,
    "c": 0.14731,
    "h": 141.4
  },
  "luminance": 0.1451
}

Semantic roles & 50–950 ramp

primary
#2A7A1F
secondary
#A147AD
accent
#45E3D0
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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