#2A6A17#2A6A17

#2A6A17 is a mid, vivid green. Relative luminance 0.109; OKLCH L 46.5% C 0.132 H 139.6°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#2A6A17
RGBrgb(42, 106, 23)
HSLhsl(106, 64%, 25%)
HSVhsv(106, 78%, 42%)
CMYKcmyk(60.4%, 0%, 78.3%, 58.4%)
CIE-LABlab(39.35, -36.61, 38.00)
CIE-LCHlch(39.35, 52.77, 133.93°)
OKLaboklab(46.5% -0.1006 0.0855)
OKLCHoklch(46.5% 0.132 139.6)
XYZxyz(6.2633, 10.8616, 2.5769)
Luminance0.1086 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6A17 #57176A
analogous
#536A17 #2A6A17 #176A2D
triadic
#2A6A17 #172A6A #6A172A
tetradic
#2A6A17 #17536A #57176A #6A2D17
square
#2A6A17 #17536A #57176A #6A2D17
split-complementary
#2A6A17 #2D176A #6A1753
monochromatic
#0A1905 #16380C #2A6A17 #3E9C22 #52CF2D

Accessibility & contrast

On white

6.62
#2A6A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2A6A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6A17
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6A17#FFFFFF#000000##FFFFFF
##2A6A171.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6007
Deuteranopia (green-blind)
#655B20
Tritanopia (blue-blind)
#23665A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a6a17;
/* rgb */ color: rgb(42, 106, 23);
/* oklch */ color: oklch(46.5% 0.132 139.6);
Tailwind
colors: {
  custom: {
    50: '#6c955a',
    500: '#2a6a17',
    950: '#000000',
  },
}
SCSS
$custom: #2a6a17;
$custom-light: #6c955a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6a17",
  "rgb": {
    "r": 42,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 106.265,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.46501,
    "c": 0.13207,
    "h": 139.6
  },
  "luminance": 0.10862
}

Semantic roles & 50–950 ramp

primary
#2A6A17
secondary
#893DA0
accent
#40E7C1
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6A17

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

Preview Lab → · Contrast checker → · Palette generator →

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