#2A7C18#2A7C18

#2A7C18 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.154 H 140.6°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#2A7C18
RGBrgb(42, 124, 24)
HSLhsl(109, 68%, 29%)
HSVhsv(109, 81%, 49%)
CMYKcmyk(66.1%, 0%, 80.6%, 51.4%)
CIE-LABlab(45.60, -43.44, 43.75)
CIE-LCHlch(45.60, 61.65, 134.79°)
OKLaboklab(51.67% -0.119 0.0977)
OKLCHoklch(51.67% 0.154 140.6)
XYZxyz(8.3270, 14.9727, 3.3152)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C18 #6A187C
analogous
#5C7C18 #2A7C18 #187C38
triadic
#2A7C18 #182A7C #7C182A
tetradic
#2A7C18 #185C7C #6A187C #7C3818
square
#2A7C18 #185C7C #6A187C #7C3818
split-complementary
#2A7C18 #38187C #7C185C
monochromatic
#091A05 #19490E #2A7C18 #3BAF22 #53D836

Accessibility & contrast

On white

5.26
#2A7C18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2A7C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C18
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C18#FFFFFF#000000##FFFFFF
##2A7C181.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#766924
Tritanopia (blue-blind)
#1D7869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c18;
/* rgb */ color: rgb(42, 124, 24);
/* oklch */ color: oklch(51.7% 0.154 140.6);
Tailwind
colors: {
  custom: {
    50: '#70a35e',
    500: '#2a7c18',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c18;
$custom-light: #70a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c18",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 109.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51672,
    "c": 0.15393,
    "h": 140.6
  },
  "luminance": 0.14973
}

Semantic roles & 50–950 ramp

primary
#2A7C18
secondary
#9C3FB1
accent
#3DEACB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7C18

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

Preview Lab → · Contrast checker → · Palette generator →

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