#2A7119#2A7119

#2A7119 is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.5% C 0.140 H 140.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#2A7119
RGBrgb(42, 113, 25)
HSLhsl(108, 64%, 27%)
HSVhsv(108, 78%, 44%)
CMYKcmyk(62.8%, 0%, 77.9%, 55.7%)
CIE-LABlab(41.80, -39.21, 39.68)
CIE-LCHlch(41.80, 55.78, 134.66°)
OKLaboklab(48.53% -0.1075 0.0893)
OKLCHoklch(48.53% 0.14 140.3)
XYZxyz(7.0351, 12.3720, 2.9368)
Luminance0.1237 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7119 #601971
analogous
#567119 #2A7119 #197134
triadic
#2A7119 #192A71 #71192A
tetradic
#2A7119 #195671 #601971 #713419
square
#2A7119 #195671 #601971 #713419
split-complementary
#2A7119 #341971 #711956
monochromatic
#091906 #173F0E #2A7119 #3DA324 #51D233

Accessibility & contrast

On white

6.04
#2A7119 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#2A7119 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7119
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7119#FFFFFF#000000##FFFFFF
##2A71191.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746607
Deuteranopia (green-blind)
#6B6022
Tritanopia (blue-blind)
#206D60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7119;
/* rgb */ color: rgb(42, 113, 25);
/* oklch */ color: oklch(48.5% 0.140 140.3);
Tailwind
colors: {
  custom: {
    50: '#6d9a5c',
    500: '#2a7119',
    950: '#000000',
  },
}
SCSS
$custom: #2a7119;
$custom-light: #6d9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7119",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 25
  },
  "hsl": {
    "h": 108.409,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.48533,
    "c": 0.13979,
    "h": 140.3
  },
  "luminance": 0.12373
}

Semantic roles & 50–950 ramp

primary
#2A7119
secondary
#9240A6
accent
#41E7C7
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A7119

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

Preview Lab → · Contrast checker → · Palette generator →

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