#2A6417#2A6417

#2A6417 is a dark, vivid green. Relative luminance 0.097; OKLCH L 44.8% C 0.124 H 139.2°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2A6417
RGBrgb(42, 100, 23)
HSLhsl(105, 63%, 24%)
HSVhsv(105, 77%, 39%)
CMYKcmyk(58%, 0%, 77%, 60.8%)
CIE-LABlab(37.24, -34.16, 35.89)
CIE-LCHlch(37.24, 49.54, 133.58°)
OKLaboklab(44.76% -0.094 0.0811)
OKLCHoklch(44.76% 0.124 139.2)
XYZxyz(5.6664, 9.6680, 2.3780)
Luminance0.0967 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6417 #511764
analogous
#516417 #2A6417 #17642B
triadic
#2A6417 #172A64 #64172A
tetradic
#2A6417 #175164 #511764 #642B17
square
#2A6417 #175164 #511764 #642B17
split-complementary
#2A6417 #2B1764 #641751
monochromatic
#0A1906 #15320C #2A6417 #3F9622 #54C82E

Accessibility & contrast

On white

7.16
#2A6417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2A6417 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6417
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6417#FFFFFF#000000##FFFFFF
##2A64171.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675B09
Deuteranopia (green-blind)
#60561F
Tritanopia (blue-blind)
#246055
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a6417;
/* rgb */ color: rgb(42, 100, 23);
/* oklch */ color: oklch(44.8% 0.124 139.2);
Tailwind
colors: {
  custom: {
    50: '#6b915a',
    500: '#2a6417',
    950: '#000000',
  },
}
SCSS
$custom: #2a6417;
$custom-light: #6b915a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6417",
  "rgb": {
    "r": 42,
    "g": 100,
    "b": 23
  },
  "hsl": {
    "h": 105.195,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.44763,
    "c": 0.12417,
    "h": 139.2
  },
  "luminance": 0.09668
}

Semantic roles & 50–950 ramp

primary
#2A6417
secondary
#833C9A
accent
#42E6BD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070D04
muted
#7A7D79

Preview Lab

Preview with #2A6417

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

Preview Lab → · Contrast checker → · Palette generator →

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