#2A7C1F#2A7C1F

#2A7C1F is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.150 H 141.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2A7C1F
RGBrgb(42, 124, 31)
HSLhsl(113, 60%, 30%)
HSVhsv(113, 75%, 49%)
CMYKcmyk(66.1%, 0%, 75%, 51.4%)
CIE-LABlab(45.64, -42.90, 41.21)
CIE-LCHlch(45.64, 59.49, 136.15°)
OKLaboklab(51.72% -0.1171 0.0934)
OKLCHoklch(51.72% 0.15 141.4)
XYZxyz(8.4094, 15.0056, 3.7493)
Luminance0.1501 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C1F #711F7C
analogous
#587C1F #2A7C1F #1F7C42
triadic
#2A7C1F #1F2A7C #7C1F2A
tetradic
#2A7C1F #1F587C #711F7C #7C421F
square
#2A7C1F #1F587C #711F7C #7C421F
split-complementary
#2A7C1F #421F7C #7C1F58
monochromatic
#091A07 #194B13 #2A7C1F #3BAD2B #55D045

Accessibility & contrast

On white

5.25
#2A7C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2A7C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C1F
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C1F#FFFFFF#000000##FFFFFF
##2A7C1F1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#756928
Tritanopia (blue-blind)
#1B786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c1f;
/* rgb */ color: rgb(42, 124, 31);
/* oklch */ color: oklch(51.7% 0.150 141.4);
Tailwind
colors: {
  custom: {
    50: '#6fa361',
    500: '#2a7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c1f;
$custom-light: #6fa361;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c1f",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 112.903,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51724,
    "c": 0.14982,
    "h": 141.4
  },
  "luminance": 0.15006
}

Semantic roles & 50–950 ramp

primary
#2A7C1F
secondary
#A348AF
accent
#45E3D0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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