#2A7219#2A7219

#2A7219 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.141 H 140.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#2A7219
RGBrgb(42, 114, 25)
HSLhsl(109, 64%, 27%)
HSVhsv(109, 78%, 45%)
CMYKcmyk(63.2%, 0%, 78.1%, 55.3%)
CIE-LABlab(42.15, -39.60, 40.02)
CIE-LCHlch(42.15, 56.30, 134.69°)
OKLaboklab(48.82% -0.1086 0.0901)
OKLCHoklch(48.82% 0.141 140.3)
XYZxyz(7.1473, 12.5964, 2.9742)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7219 #611972
analogous
#577219 #2A7219 #197234
triadic
#2A7219 #192A72 #72192A
tetradic
#2A7219 #195772 #611972 #723419
square
#2A7219 #195772 #611972 #723419
split-complementary
#2A7219 #341972 #721957
monochromatic
#091906 #18400E #2A7219 #3CA424 #52D233

Accessibility & contrast

On white

5.97
#2A7219 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2A7219 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7219
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7219#FFFFFF#000000##FFFFFF
##2A72191.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756707
Deuteranopia (green-blind)
#6C6122
Tritanopia (blue-blind)
#206E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7219;
/* rgb */ color: rgb(42, 114, 25);
/* oklch */ color: oklch(48.8% 0.141 140.3);
Tailwind
colors: {
  custom: {
    50: '#6d9b5d',
    500: '#2a7219',
    950: '#000000',
  },
}
SCSS
$custom: #2a7219;
$custom-light: #6d9b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7219",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 25
  },
  "hsl": {
    "h": 108.539,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.4882,
    "c": 0.14105,
    "h": 140.3
  },
  "luminance": 0.12597
}

Semantic roles & 50–950 ramp

primary
#2A7219
secondary
#9340A7
accent
#41E7C7
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A7219

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

Preview Lab → · Contrast checker → · Palette generator →

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