#2A6217#2A6217

#2A6217 is a dark, vivid green. Relative luminance 0.093; OKLCH L 44.2% C 0.121 H 139.0°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#2A6217
RGBrgb(42, 98, 23)
HSLhsl(105, 62%, 24%)
HSVhsv(105, 77%, 38%)
CMYKcmyk(57.1%, 0%, 76.5%, 61.6%)
CIE-LABlab(36.53, -33.32, 35.17)
CIE-LCHlch(36.53, 48.45, 133.45°)
OKLaboklab(44.18% -0.0917 0.0796)
OKLCHoklch(44.18% 0.121 139)
XYZxyz(5.4770, 9.2890, 2.3148)
Luminance0.0929 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6217 #4F1762
analogous
#4F6217 #2A6217 #176229
triadic
#2A6217 #172A62 #62172A
tetradic
#2A6217 #174F62 #4F1762 #622917
square
#2A6217 #174F62 #4F1762 #622917
split-complementary
#2A6217 #291762 #62174F
monochromatic
#0B1906 #15300B #2A6217 #3F9423 #54C52E

Accessibility & contrast

On white

7.35
#2A6217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2A6217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6217
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6217#FFFFFF#000000##FFFFFF
##2A62171.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65590A
Deuteranopia (green-blind)
#5E541E
Tritanopia (blue-blind)
#255E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a6217;
/* rgb */ color: rgb(42, 98, 23);
/* oklch */ color: oklch(44.2% 0.121 139.0);
Tailwind
colors: {
  custom: {
    50: '#6a8f59',
    500: '#2a6217',
    950: '#000000',
  },
}
SCSS
$custom: #2a6217;
$custom-light: #6a8f59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6217",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 104.8,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.44182,
    "c": 0.12149,
    "h": 139
  },
  "luminance": 0.09289
}

Semantic roles & 50–950 ramp

primary
#2A6217
secondary
#813C99
accent
#43E5BC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A6217

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

Preview Lab → · Contrast checker → · Palette generator →

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