#2A6218#2A6218

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

Color values

HEX#2A6218
RGBrgb(42, 98, 24)
HSLhsl(105, 61%, 24%)
HSVhsv(105, 76%, 38%)
CMYKcmyk(57.1%, 0%, 75.5%, 61.6%)
CIE-LABlab(36.54, -33.23, 34.76)
CIE-LCHlch(36.54, 48.09, 133.71°)
OKLaboklab(44.19% -0.0914 0.0789)
OKLCHoklch(44.19% 0.121 139.2)
XYZxyz(5.4872, 9.2931, 2.3686)
Luminance0.0929 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6218 #501862
analogous
#4F6218 #2A6218 #18622B
triadic
#2A6218 #182A62 #62182A
tetradic
#2A6218 #184F62 #501862 #622B18
square
#2A6218 #184F62 #501862 #622B18
split-complementary
#2A6218 #2B1862 #62184F
monochromatic
#0B1906 #15310C #2A6218 #3F9324 #54C430

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A6218#FFFFFF#000000##FFFFFF
##2A62181.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)
#65590C
Deuteranopia (green-blind)
#5E541F
Tritanopia (blue-blind)
#245F53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a6218;
/* rgb */ color: rgb(42, 98, 24);
/* oklch */ color: oklch(44.2% 0.121 139.2);
Tailwind
colors: {
  custom: {
    50: '#6a8f5a',
    500: '#2a6218',
    950: '#000000',
  },
}
SCSS
$custom: #2a6218;
$custom-light: #6a8f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6218",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 24
  },
  "hsl": {
    "h": 105.405,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.44191,
    "c": 0.12079,
    "h": 139.2
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#2A6218
secondary
#823E98
accent
#44E4BD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A6218

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

Preview Lab → · Contrast checker → · Palette generator →

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