#2A6E17#2A6E17

#2A6E17 is a mid, vivid green. Relative luminance 0.117; OKLCH L 47.7% C 0.137 H 139.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#2A6E17
RGBrgb(42, 110, 23)
HSLhsl(107, 65%, 26%)
HSVhsv(107, 79%, 43%)
CMYKcmyk(61.8%, 0%, 79.1%, 56.9%)
CIE-LABlab(40.74, -38.19, 39.39)
CIE-LCHlch(40.74, 54.86, 134.12°)
OKLaboklab(47.65% -0.1049 0.0884)
OKLCHoklch(47.65% 0.137 139.9)
XYZxyz(6.6851, 11.7054, 2.7175)
Luminance0.1171 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6E17 #5B176E
analogous
#556E17 #2A6E17 #176E2F
triadic
#2A6E17 #172A6E #6E172A
tetradic
#2A6E17 #17556E #5B176E #6E2F17
square
#2A6E17 #17556E #5B176E #6E2F17
split-complementary
#2A6E17 #2F176E #6E1755
monochromatic
#0A1905 #173B0C #2A6E17 #3DA122 #51D32C

Accessibility & contrast

On white

6.29
#2A6E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2A6E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6E17
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6E17#FFFFFF#000000##FFFFFF
##2A6E171.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716405
Deuteranopia (green-blind)
#695E20
Tritanopia (blue-blind)
#216A5D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a6e17;
/* rgb */ color: rgb(42, 110, 23);
/* oklch */ color: oklch(47.7% 0.137 139.9);
Tailwind
colors: {
  custom: {
    50: '#6d985b',
    500: '#2a6e17',
    950: '#000000',
  },
}
SCSS
$custom: #2a6e17;
$custom-light: #6d985b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6e17",
  "rgb": {
    "r": 42,
    "g": 110,
    "b": 23
  },
  "hsl": {
    "h": 106.897,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.47655,
    "c": 0.1372,
    "h": 139.9
  },
  "luminance": 0.11706
}

Semantic roles & 50–950 ramp

primary
#2A6E17
secondary
#8D3DA4
accent
#3FE8C3
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A6E17

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

Preview Lab → · Contrast checker → · Palette generator →

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