#2A6212#2A6212

#2A6212 is a dark, vivid green. Relative luminance 0.093; OKLCH L 44.1% C 0.125 H 138.3°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#2A6212
RGBrgb(42, 98, 18)
HSLhsl(102, 69%, 23%)
HSVhsv(102, 82%, 38%)
CMYKcmyk(57.1%, 0%, 81.6%, 61.6%)
CIE-LABlab(36.50, -33.71, 37.09)
CIE-LCHlch(36.50, 50.12, 132.26°)
OKLaboklab(44.14% -0.0931 0.0829)
OKLCHoklch(44.14% 0.125 138.3)
XYZxyz(5.4315, 9.2708, 2.0754)
Luminance0.0927 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6212 #4A1262
analogous
#526212 #2A6212 #126222
triadic
#2A6212 #122A62 #62122A
tetradic
#2A6212 #125262 #4A1262 #622212
square
#2A6212 #125262 #4A1262 #622212
split-complementary
#2A6212 #221262 #621252
monochromatic
#0B1A05 #142E09 #2A6212 #40961B #56C925

Accessibility & contrast

On white

7.36
#2A6212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2A6212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6212
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6212#FFFFFF#000000##FFFFFF
##2A62121.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655901
Deuteranopia (green-blind)
#5E541B
Tritanopia (blue-blind)
#255E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a6212;
/* rgb */ color: rgb(42, 98, 18);
/* oklch */ color: oklch(44.1% 0.125 138.3);
Tailwind
colors: {
  custom: {
    50: '#6b8f57',
    500: '#2a6212',
    950: '#000000',
  },
}
SCSS
$custom: #2a6212;
$custom-light: #6b8f57;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6212",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 102,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44142,
    "c": 0.12466,
    "h": 138.3
  },
  "luminance": 0.09271
}

Semantic roles & 50–950 ramp

primary
#2A6212
secondary
#7C369A
accent
#3CECB7
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A6212

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

Preview Lab → · Contrast checker → · Palette generator →

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