#2A7018#2A7018

#2A7018 is a mid, vivid green. Relative luminance 0.121; OKLCH L 48.2% C 0.139 H 140.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#2A7018
RGBrgb(42, 112, 24)
HSLhsl(108, 65%, 27%)
HSVhsv(108, 79%, 44%)
CMYKcmyk(62.5%, 0%, 78.6%, 56.1%)
CIE-LABlab(41.45, -38.90, 39.71)
CIE-LCHlch(41.45, 55.59, 134.41°)
OKLaboklab(48.24% -0.1067 0.0892)
OKLCHoklch(48.24% 0.139 140.1)
XYZxyz(6.9136, 12.1459, 2.8440)
Luminance0.1215 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7018 #5E1870
analogous
#567018 #2A7018 #187032
triadic
#2A7018 #182A70 #70182A
tetradic
#2A7018 #185670 #5E1870 #703218
square
#2A7018 #185670 #5E1870 #703218
split-complementary
#2A7018 #321870 #701856
monochromatic
#091905 #173E0D #2A7018 #3DA223 #51D330

Accessibility & contrast

On white

6.12
#2A7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2A7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7018
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7018#FFFFFF#000000##FFFFFF
##2A70181.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736506
Deuteranopia (green-blind)
#6B6021
Tritanopia (blue-blind)
#216C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a7018;
/* rgb */ color: rgb(42, 112, 24);
/* oklch */ color: oklch(48.2% 0.139 140.1);
Tailwind
colors: {
  custom: {
    50: '#6d9a5c',
    500: '#2a7018',
    950: '#000000',
  },
}
SCSS
$custom: #2a7018;
$custom-light: #6d9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7018",
  "rgb": {
    "r": 42,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 107.727,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48238,
    "c": 0.13913,
    "h": 140.1
  },
  "luminance": 0.12147
}

Semantic roles & 50–950 ramp

primary
#2A7018
secondary
#903EA5
accent
#40E8C5
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A7018

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

Preview Lab → · Contrast checker → · Palette generator →

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