#2A7E18#2A7E18

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

Color values

HEX#2A7E18
RGBrgb(42, 126, 24)
HSLhsl(109, 68%, 29%)
HSVhsv(109, 81%, 49%)
CMYKcmyk(66.7%, 0%, 81%, 50.6%)
CIE-LABlab(46.28, -44.17, 44.41)
CIE-LCHlch(46.28, 62.63, 134.84°)
OKLaboklab(52.24% -0.1209 0.0991)
OKLCHoklch(52.24% 0.156 140.7)
XYZxyz(8.5801, 15.4790, 3.3996)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E18 #6C187E
analogous
#5D7E18 #2A7E18 #187E39
triadic
#2A7E18 #182A7E #7E182A
tetradic
#2A7E18 #185D7E #6C187E #7E3918
square
#2A7E18 #185D7E #6C187E #7E3918
split-complementary
#2A7E18 #39187E #7E185D
monochromatic
#091A05 #194B0E #2A7E18 #3BB122 #54D937

Accessibility & contrast

On white

5.13
#2A7E18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2A7E18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E18
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E18#FFFFFF#000000##FFFFFF
##2A7E181.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#1C7A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e18;
/* rgb */ color: rgb(42, 126, 24);
/* oklch */ color: oklch(52.2% 0.156 140.7);
Tailwind
colors: {
  custom: {
    50: '#70a45e',
    500: '#2a7e18',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e18;
$custom-light: #70a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e18",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 109.412,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5224,
    "c": 0.15633,
    "h": 140.7
  },
  "luminance": 0.1548
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7E18

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

Preview Lab → · Contrast checker → · Palette generator →

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