#2A7819#2A7819

#2A7819 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.149 H 140.6°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#2A7819
RGBrgb(42, 120, 25)
HSLhsl(109, 66%, 28%)
HSVhsv(109, 79%, 47%)
CMYKcmyk(65%, 0%, 79.2%, 52.9%)
CIE-LABlab(44.23, -41.88, 42.07)
CIE-LCHlch(44.23, 59.36, 134.87°)
OKLaboklab(50.54% -0.1147 0.0943)
OKLCHoklch(50.54% 0.149 140.6)
XYZxyz(7.8464, 13.9946, 3.2072)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7819 #671978
analogous
#597819 #2A7819 #197837
triadic
#2A7819 #192A78 #78192A
tetradic
#2A7819 #195978 #671978 #783719
square
#2A7819 #195978 #671978 #783719
split-complementary
#2A7819 #371978 #781959
monochromatic
#091905 #18450E #2A7819 #3CAB24 #53D536

Accessibility & contrast

On white

5.53
#2A7819 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#2A7819 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7819
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7819#FFFFFF#000000##FFFFFF
##2A78191.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C04
Deuteranopia (green-blind)
#726623
Tritanopia (blue-blind)
#1E7466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7819;
/* rgb */ color: rgb(42, 120, 25);
/* oklch */ color: oklch(50.5% 0.149 140.6);
Tailwind
colors: {
  custom: {
    50: '#6fa05d',
    500: '#2a7819',
    950: '#000000',
  },
}
SCSS
$custom: #2a7819;
$custom-light: #6fa05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7819",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 25
  },
  "hsl": {
    "h": 109.263,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50538,
    "c": 0.14852,
    "h": 140.6
  },
  "luminance": 0.13995
}

Semantic roles & 50–950 ramp

primary
#2A7819
secondary
#9940AD
accent
#3FE8CA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2A7819

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

Preview Lab → · Contrast checker → · Palette generator →

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