#2A6112#2A6112

#2A6112 is a dark, vivid green. Relative luminance 0.091; OKLCH L 43.9% C 0.123 H 138.2°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#2A6112
RGBrgb(42, 97, 18)
HSLhsl(102, 69%, 23%)
HSVhsv(102, 81%, 38%)
CMYKcmyk(56.7%, 0%, 81.4%, 62%)
CIE-LABlab(36.15, -33.29, 36.75)
CIE-LCHlch(36.15, 49.59, 132.17°)
OKLaboklab(43.85% -0.092 0.0822)
OKLCHoklch(43.85% 0.123 138.2)
XYZxyz(5.3385, 9.0849, 2.0444)
Luminance0.0909 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6112 #491261
analogous
#526112 #2A6112 #126121
triadic
#2A6112 #122A61 #61122A
tetradic
#2A6112 #125261 #491261 #612112
square
#2A6112 #125261 #491261 #612112
split-complementary
#2A6112 #211261 #611252
monochromatic
#0B1A05 #142D08 #2A6112 #40951C #57C825

Accessibility & contrast

On white

7.45
#2A6112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2A6112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6112
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6112#FFFFFF#000000##FFFFFF
##2A61121.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645802
Deuteranopia (green-blind)
#5D531B
Tritanopia (blue-blind)
#255D52
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a6112;
/* rgb */ color: rgb(42, 97, 18);
/* oklch */ color: oklch(43.9% 0.123 138.2);
Tailwind
colors: {
  custom: {
    50: '#6a8e57',
    500: '#2a6112',
    950: '#000000',
  },
}
SCSS
$custom: #2a6112;
$custom-light: #6a8e57;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6112",
  "rgb": {
    "r": 42,
    "g": 97,
    "b": 18
  },
  "hsl": {
    "h": 101.772,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.43851,
    "c": 0.12335,
    "h": 138.2
  },
  "luminance": 0.09085
}

Semantic roles & 50–950 ramp

primary
#2A6112
secondary
#7B3699
accent
#3CECB6
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A6112

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

Preview Lab → · Contrast checker → · Palette generator →

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