#2A6C17#2A6C17

#2A6C17 is a mid, vivid green. Relative luminance 0.113; OKLCH L 47.1% C 0.135 H 139.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#2A6C17
RGBrgb(42, 108, 23)
HSLhsl(107, 65%, 26%)
HSVhsv(107, 79%, 42%)
CMYKcmyk(61.1%, 0%, 78.7%, 57.6%)
CIE-LABlab(40.05, -37.40, 38.70)
CIE-LCHlch(40.05, 53.82, 134.03°)
OKLaboklab(47.08% -0.1028 0.087)
OKLCHoklch(47.08% 0.135 139.8)
XYZxyz(6.4718, 11.2787, 2.6464)
Luminance0.1128 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6C17 #59176C
analogous
#546C17 #2A6C17 #176C2E
triadic
#2A6C17 #172A6C #6C172A
tetradic
#2A6C17 #17546C #59176C #6C2E17
square
#2A6C17 #17546C #59176C #6C2E17
split-complementary
#2A6C17 #2E176C #6C1754
monochromatic
#0A1905 #163A0C #2A6C17 #3E9E22 #51D12C

Accessibility & contrast

On white

6.45
#2A6C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#2A6C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6C17
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6C17#FFFFFF#000000##FFFFFF
##2A6C171.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6206
Deuteranopia (green-blind)
#675C20
Tritanopia (blue-blind)
#22685C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a6c17;
/* rgb */ color: rgb(42, 108, 23);
/* oklch */ color: oklch(47.1% 0.135 139.8);
Tailwind
colors: {
  custom: {
    50: '#6c975b',
    500: '#2a6c17',
    950: '#000000',
  },
}
SCSS
$custom: #2a6c17;
$custom-light: #6c975b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6c17",
  "rgb": {
    "r": 42,
    "g": 108,
    "b": 23
  },
  "hsl": {
    "h": 106.588,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.47079,
    "c": 0.13464,
    "h": 139.8
  },
  "luminance": 0.11279
}

Semantic roles & 50–950 ramp

primary
#2A6C17
secondary
#8B3DA2
accent
#40E8C2
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6C17

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

Preview Lab → · Contrast checker → · Palette generator →

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