#2A6612#2A6612

#2A6612 is a mid, vivid green. Relative luminance 0.100; OKLCH L 45.3% C 0.130 H 138.7°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2A6612
RGBrgb(42, 102, 18)
HSLhsl(103, 70%, 24%)
HSVhsv(103, 82%, 40%)
CMYKcmyk(58.8%, 0%, 82.4%, 60%)
CIE-LABlab(37.91, -35.35, 38.45)
CIE-LCHlch(37.91, 52.23, 132.60°)
OKLaboklab(45.31% -0.0976 0.0857)
OKLCHoklch(45.31% 0.13 138.7)
XYZxyz(5.8152, 10.0382, 2.2033)
Luminance0.1004 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6612 #4E1266
analogous
#546612 #2A6612 #126624
triadic
#2A6612 #122A66 #66122A
tetradic
#2A6612 #125466 #4E1266 #662412
square
#2A6612 #125466 #4E1266 #662412
split-complementary
#2A6612 #241266 #661254
monochromatic
#0B1A05 #153209 #2A6612 #3F9A1B #55CE24

Accessibility & contrast

On white

6.98
#2A6612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2A6612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6612
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6612#FFFFFF#000000##FFFFFF
##2A66121.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C00
Deuteranopia (green-blind)
#62571C
Tritanopia (blue-blind)
#246256
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a6612;
/* rgb */ color: rgb(42, 102, 18);
/* oklch */ color: oklch(45.3% 0.130 138.7);
Tailwind
colors: {
  custom: {
    50: '#6b9257',
    500: '#2a6612',
    950: '#000000',
  },
}
SCSS
$custom: #2a6612;
$custom-light: #6b9257;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6612",
  "rgb": {
    "r": 42,
    "g": 102,
    "b": 18
  },
  "hsl": {
    "h": 102.857,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.45306,
    "c": 0.12985,
    "h": 138.7
  },
  "luminance": 0.10039
}

Semantic roles & 50–950 ramp

primary
#2A6612
secondary
#80369E
accent
#3BEDBA
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D03
muted
#7A7E78

Preview Lab

Preview with #2A6612

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

Preview Lab → · Contrast checker → · Palette generator →

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