#2A7318#2A7318

#2A7318 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.143 H 140.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2A7318
RGBrgb(42, 115, 24)
HSLhsl(108, 65%, 27%)
HSVhsv(108, 79%, 45%)
CMYKcmyk(63.5%, 0%, 79.1%, 54.9%)
CIE-LABlab(42.49, -40.06, 40.73)
CIE-LCHlch(42.49, 57.13, 134.52°)
OKLaboklab(49.1% -0.1099 0.0914)
OKLCHoklch(49.1% 0.143 140.2)
XYZxyz(7.2501, 12.8190, 2.9562)
Luminance0.1282 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7318 #611873
analogous
#587318 #2A7318 #187334
triadic
#2A7318 #182A73 #73182A
tetradic
#2A7318 #185873 #611873 #733418
square
#2A7318 #185873 #611873 #733418
split-complementary
#2A7318 #341873 #731858
monochromatic
#091905 #18400D #2A7318 #3CA623 #52D431

Accessibility & contrast

On white

5.89
#2A7318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2A7318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7318
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7318#FFFFFF#000000##FFFFFF
##2A73181.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766804
Deuteranopia (green-blind)
#6D6222
Tritanopia (blue-blind)
#206F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7318;
/* rgb */ color: rgb(42, 115, 24);
/* oklch */ color: oklch(49.1% 0.143 140.2);
Tailwind
colors: {
  custom: {
    50: '#6e9c5c',
    500: '#2a7318',
    950: '#000000',
  },
}
SCSS
$custom: #2a7318;
$custom-light: #6e9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7318",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 108.132,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.491,
    "c": 0.14291,
    "h": 140.2
  },
  "luminance": 0.1282
}

Semantic roles & 50–950 ramp

primary
#2A7318
secondary
#933FA8
accent
#3FE8C7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7318

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

Preview Lab → · Contrast checker → · Palette generator →

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