#2A7D18#2A7D18

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

Color values

HEX#2A7D18
RGBrgb(42, 125, 24)
HSLhsl(109, 68%, 29%)
HSVhsv(109, 81%, 49%)
CMYKcmyk(66.4%, 0%, 80.8%, 51%)
CIE-LABlab(45.94, -43.80, 44.08)
CIE-LCHlch(45.94, 62.14, 134.82°)
OKLaboklab(51.96% -0.1199 0.0984)
OKLCHoklch(51.96% 0.155 140.6)
XYZxyz(8.4529, 15.2246, 3.3572)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D18 #6B187D
analogous
#5D7D18 #2A7D18 #187D39
triadic
#2A7D18 #182A7D #7D182A
tetradic
#2A7D18 #185D7D #6B187D #7D3918
square
#2A7D18 #185D7D #6B187D #7D3918
split-complementary
#2A7D18 #39187D #7D185D
monochromatic
#091A05 #194A0E #2A7D18 #3BB022 #54D937

Accessibility & contrast

On white

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

On black

4.04
#2A7D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A7D18#FFFFFF#000000##FFFFFF
##2A7D181.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a7d18;
/* rgb */ color: rgb(42, 125, 24);
/* oklch */ color: oklch(52.0% 0.155 140.6);
Tailwind
colors: {
  custom: {
    50: '#70a35e',
    500: '#2a7d18',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d18;
$custom-light: #70a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d18",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 109.307,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51956,
    "c": 0.15513,
    "h": 140.6
  },
  "luminance": 0.15225
}

Semantic roles & 50–950 ramp

primary
#2A7D18
secondary
#9D3FB2
accent
#3DEBCC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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