#2A7718#2A7718

#2A7718 is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.2% C 0.148 H 140.4°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#2A7718
RGBrgb(42, 119, 24)
HSLhsl(109, 66%, 28%)
HSVhsv(109, 80%, 47%)
CMYKcmyk(64.7%, 0%, 79.8%, 53.3%)
CIE-LABlab(43.87, -41.58, 42.08)
CIE-LCHlch(43.87, 59.16, 134.65°)
OKLaboklab(50.25% -0.114 0.0942)
OKLCHoklch(50.25% 0.148 140.4)
XYZxyz(7.7162, 13.7511, 3.1116)
Luminance0.1375 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7718 #651877
analogous
#597718 #2A7718 #187736
triadic
#2A7718 #182A77 #77182A
tetradic
#2A7718 #185977 #651877 #773618
square
#2A7718 #185977 #651877 #773618
split-complementary
#2A7718 #361877 #771859
monochromatic
#091905 #18440E #2A7718 #3CAA22 #52D633

Accessibility & contrast

On white

5.60
#2A7718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#2A7718 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7718
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7718#FFFFFF#000000##FFFFFF
##2A77181.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C02
Deuteranopia (green-blind)
#716523
Tritanopia (blue-blind)
#1E7365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2a7718;
/* rgb */ color: rgb(42, 119, 24);
/* oklch */ color: oklch(50.2% 0.148 140.4);
Tailwind
colors: {
  custom: {
    50: '#6e9f5d',
    500: '#2a7718',
    950: '#000000',
  },
}
SCSS
$custom: #2a7718;
$custom-light: #6e9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7718",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 24
  },
  "hsl": {
    "h": 108.632,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50245,
    "c": 0.14786,
    "h": 140.4
  },
  "luminance": 0.13752
}

Semantic roles & 50–950 ramp

primary
#2A7718
secondary
#973FAC
accent
#3EE9C9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7718

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

Preview Lab → · Contrast checker → · Palette generator →

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