#2A7518#2A7518

#2A7518 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.7% C 0.145 H 140.3°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#2A7518
RGBrgb(42, 117, 24)
HSLhsl(108, 66%, 28%)
HSVhsv(108, 79%, 46%)
CMYKcmyk(64.1%, 0%, 79.5%, 54.1%)
CIE-LABlab(43.18, -40.82, 41.41)
CIE-LCHlch(43.18, 58.15, 134.59°)
OKLaboklab(49.67% -0.1119 0.0928)
OKLCHoklch(49.67% 0.145 140.3)
XYZxyz(7.4807, 13.2801, 3.0331)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7518 #631875
analogous
#587518 #2A7518 #187534
triadic
#2A7518 #182A75 #75182A
tetradic
#2A7518 #185875 #631875 #753418
square
#2A7518 #185875 #631875 #753418
split-complementary
#2A7518 #341875 #751858
monochromatic
#091905 #18420E #2A7518 #3CA822 #52D532

Accessibility & contrast

On white

5.74
#2A7518 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#2A7518 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7518
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7518#FFFFFF#000000##FFFFFF
##2A75181.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A03
Deuteranopia (green-blind)
#6F6422
Tritanopia (blue-blind)
#1F7163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2a7518;
/* rgb */ color: rgb(42, 117, 24);
/* oklch */ color: oklch(49.7% 0.145 140.3);
Tailwind
colors: {
  custom: {
    50: '#6e9d5c',
    500: '#2a7518',
    950: '#000000',
  },
}
SCSS
$custom: #2a7518;
$custom-light: #6e9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7518",
  "rgb": {
    "r": 42,
    "g": 117,
    "b": 24
  },
  "hsl": {
    "h": 108.387,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.49673,
    "c": 0.14539,
    "h": 140.3
  },
  "luminance": 0.13281
}

Semantic roles & 50–950 ramp

primary
#2A7518
secondary
#953FAA
accent
#3FE9C8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7518

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

Preview Lab → · Contrast checker → · Palette generator →

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