#2A7319#2A7319

#2A7319 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.142 H 140.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2A7319
RGBrgb(42, 115, 25)
HSLhsl(109, 64%, 27%)
HSVhsv(109, 78%, 45%)
CMYKcmyk(63.5%, 0%, 78.3%, 54.9%)
CIE-LABlab(42.50, -39.98, 40.37)
CIE-LCHlch(42.50, 56.82, 134.73°)
OKLaboklab(49.11% -0.1096 0.0908)
OKLCHoklch(49.11% 0.142 140.4)
XYZxyz(7.2607, 12.8232, 3.0120)
Luminance0.1282 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7319 #621973
analogous
#577319 #2A7319 #197335
triadic
#2A7319 #192A73 #73192A
tetradic
#2A7319 #195773 #621973 #733519
square
#2A7319 #195773 #621973 #733519
split-complementary
#2A7319 #351973 #731957
monochromatic
#091905 #18410E #2A7319 #3CA524 #52D334

Accessibility & contrast

On white

5.89
#2A7319 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2A7319 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7319
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7319#FFFFFF#000000##FFFFFF
##2A73191.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766806
Deuteranopia (green-blind)
#6D6223
Tritanopia (blue-blind)
#206F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7319;
/* rgb */ color: rgb(42, 115, 25);
/* oklch */ color: oklch(49.1% 0.142 140.4);
Tailwind
colors: {
  custom: {
    50: '#6e9c5d',
    500: '#2a7319',
    950: '#000000',
  },
}
SCSS
$custom: #2a7319;
$custom-light: #6e9c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7319",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 25
  },
  "hsl": {
    "h": 108.667,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49107,
    "c": 0.14231,
    "h": 140.4
  },
  "luminance": 0.12824
}

Semantic roles & 50–950 ramp

primary
#2A7319
secondary
#9440A8
accent
#41E7C8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7319

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

Preview Lab → · Contrast checker → · Palette generator →

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