#2A7B1F#2A7B1F

#2A7B1F is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.4% C 0.149 H 141.4°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2A7B1F
RGBrgb(42, 123, 31)
HSLhsl(113, 60%, 30%)
HSVhsv(113, 75%, 48%)
CMYKcmyk(65.9%, 0%, 74.8%, 51.8%)
CIE-LABlab(45.30, -42.53, 40.86)
CIE-LCHlch(45.30, 58.98, 136.14°)
OKLaboklab(51.44% -0.1161 0.0927)
OKLCHoklch(51.44% 0.149 141.4)
XYZxyz(8.2847, 14.7563, 3.7077)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B1F #701F7B
analogous
#587B1F #2A7B1F #1F7B42
triadic
#2A7B1F #1F2A7B #7B1F2A
tetradic
#2A7B1F #1F587B #701F7B #7B421F
square
#2A7B1F #1F587B #701F7B #7B421F
split-complementary
#2A7B1F #421F7B #7B1F58
monochromatic
#091906 #194A13 #2A7B1F #3BAC2B #55D044

Accessibility & contrast

On white

5.31
#2A7B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2A7B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7B1F
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7B1F#FFFFFF#000000##FFFFFF
##2A7B1F1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#746928
Tritanopia (blue-blind)
#1C7769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7b1f;
/* rgb */ color: rgb(42, 123, 31);
/* oklch */ color: oklch(51.4% 0.149 141.4);
Tailwind
colors: {
  custom: {
    50: '#6fa261',
    500: '#2a7b1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b1f;
$custom-light: #6fa261;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b1f",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 112.826,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51439,
    "c": 0.14857,
    "h": 141.4
  },
  "luminance": 0.14757
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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