#2A7D19#2A7D19

#2A7D19 is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.0% C 0.155 H 140.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2A7D19
RGBrgb(42, 125, 25)
HSLhsl(110, 67%, 29%)
HSVhsv(110, 80%, 49%)
CMYKcmyk(66.4%, 0%, 80%, 51%)
CIE-LABlab(45.95, -43.73, 43.74)
CIE-LCHlch(45.95, 61.86, 134.99°)
OKLaboklab(51.96% -0.1197 0.0978)
OKLCHoklch(51.96% 0.155 140.7)
XYZxyz(8.4635, 15.2288, 3.4130)
Luminance0.1523 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D19 #6C197D
analogous
#5C7D19 #2A7D19 #197D3A
triadic
#2A7D19 #192A7D #7D192A
tetradic
#2A7D19 #195C7D #6C197D #7D3A19
square
#2A7D19 #195C7D #6C197D #7D3A19
split-complementary
#2A7D19 #3A197D #7D195C
monochromatic
#091A05 #194A0F #2A7D19 #3BB023 #54D739

Accessibility & contrast

On white

5.19
#2A7D19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2A7D19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D19
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D19#FFFFFF#000000##FFFFFF
##2A7D191.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807101
Deuteranopia (green-blind)
#766A24
Tritanopia (blue-blind)
#1C796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d19;
/* rgb */ color: rgb(42, 125, 25);
/* oklch */ color: oklch(52.0% 0.155 140.7);
Tailwind
colors: {
  custom: {
    50: '#70a35e',
    500: '#2a7d19',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d19;
$custom-light: #70a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d19",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 25
  },
  "hsl": {
    "h": 109.8,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51963,
    "c": 0.15459,
    "h": 140.7
  },
  "luminance": 0.1523
}

Semantic roles & 50–950 ramp

primary
#2A7D19
secondary
#9E40B1
accent
#3EEACC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7D19

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

Preview Lab → · Contrast checker → · Palette generator →

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