#2A7D1F#2A7D1F

#2A7D1F is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.151 H 141.4°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2A7D1F
RGBrgb(42, 125, 31)
HSLhsl(113, 60%, 31%)
HSVhsv(113, 75%, 49%)
CMYKcmyk(66.4%, 0%, 75.2%, 51%)
CIE-LABlab(45.98, -43.27, 41.56)
CIE-LCHlch(45.98, 60.00, 136.15°)
OKLaboklab(52.01% -0.1181 0.0941)
OKLCHoklch(52.01% 0.151 141.4)
XYZxyz(8.5353, 15.2576, 3.7913)
Luminance0.1526 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D1F #721F7D
analogous
#597D1F #2A7D1F #1F7D43
triadic
#2A7D1F #1F2A7D #7D1F2A
tetradic
#2A7D1F #1F597D #721F7D #7D431F
square
#2A7D1F #1F597D #721F7D #7D431F
split-complementary
#2A7D1F #431F7D #7D1F59
monochromatic
#091B07 #1A4C13 #2A7D1F #3AAE2B #56D145

Accessibility & contrast

On white

5.18
#2A7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2A7D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D1F
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D1F#FFFFFF#000000##FFFFFF
##2A7D1F1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#1B796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d1f;
/* rgb */ color: rgb(42, 125, 31);
/* oklch */ color: oklch(52.0% 0.151 141.4);
Tailwind
colors: {
  custom: {
    50: '#6fa361',
    500: '#2a7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d1f;
$custom-light: #6fa361;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d1f",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 112.979,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52007,
    "c": 0.15105,
    "h": 141.4
  },
  "luminance": 0.15258
}

Semantic roles & 50–950 ramp

primary
#2A7D1F
secondary
#A448B0
accent
#44E3D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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