#2A7F1F#2A7F1F

#2A7F1F is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.154 H 141.5°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2A7F1F
RGBrgb(42, 127, 31)
HSLhsl(113, 61%, 31%)
HSVhsv(113, 76%, 50%)
CMYKcmyk(66.9%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.67, -44.01, 42.26)
CIE-LCHlch(46.67, 61.01, 136.16°)
OKLaboklab(52.58% -0.1201 0.0956)
OKLCHoklch(52.58% 0.154 141.5)
XYZxyz(8.7911, 15.7690, 3.8765)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F1F #741F7F
analogous
#5A7F1F #2A7F1F #1F7F44
triadic
#2A7F1F #1F2A7F #7F1F2A
tetradic
#2A7F1F #1F5A7F #741F7F #7F441F
square
#2A7F1F #1F5A7F #741F7F #7F441F
split-complementary
#2A7F1F #441F7F #7F1F5A
monochromatic
#091D07 #1A4E13 #2A7F1F #3AB02B #56D246

Accessibility & contrast

On white

5.06
#2A7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2A7F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F1F
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F1F#FFFFFF#000000##FFFFFF
##2A7F1F1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730D
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#1A7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7f1f;
/* rgb */ color: rgb(42, 127, 31);
/* oklch */ color: oklch(52.6% 0.154 141.5);
Tailwind
colors: {
  custom: {
    50: '#70a561',
    500: '#2a7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f1f;
$custom-light: #70a561;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f1f",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 113.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52575,
    "c": 0.15352,
    "h": 141.5
  },
  "luminance": 0.1577
}

Semantic roles & 50–950 ramp

primary
#2A7F1F
secondary
#A648B2
accent
#44E4D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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