#2A6A18#2A6A18

#2A6A18 is a mid, vivid green. Relative luminance 0.109; OKLCH L 46.5% C 0.131 H 139.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#2A6A18
RGBrgb(42, 106, 24)
HSLhsl(107, 63%, 25%)
HSVhsv(107, 77%, 42%)
CMYKcmyk(60.4%, 0%, 77.4%, 58.4%)
CIE-LABlab(39.35, -36.53, 37.62)
CIE-LCHlch(39.35, 52.43, 134.16°)
OKLaboklab(46.51% -0.1003 0.0849)
OKLCHoklch(46.51% 0.131 139.8)
XYZxyz(6.2735, 10.8657, 2.6307)
Luminance0.1087 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6A18 #58186A
analogous
#536A18 #2A6A18 #186A2F
triadic
#2A6A18 #182A6A #6A182A
tetradic
#2A6A18 #18536A #58186A #6A2F18
square
#2A6A18 #18536A #58186A #6A2F18
split-complementary
#2A6A18 #2F186A #6A1853
monochromatic
#0A1906 #16380D #2A6A18 #3E9C23 #52CE2F

Accessibility & contrast

On white

6.62
#2A6A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2A6A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6A18
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6A18#FFFFFF#000000##FFFFFF
##2A6A181.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6009
Deuteranopia (green-blind)
#655B20
Tritanopia (blue-blind)
#22665A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a6a18;
/* rgb */ color: rgb(42, 106, 24);
/* oklch */ color: oklch(46.5% 0.131 139.8);
Tailwind
colors: {
  custom: {
    50: '#6c955b',
    500: '#2a6a18',
    950: '#000000',
  },
}
SCSS
$custom: #2a6a18;
$custom-light: #6c955b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6a18",
  "rgb": {
    "r": 42,
    "g": 106,
    "b": 24
  },
  "hsl": {
    "h": 106.829,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.46509,
    "c": 0.13143,
    "h": 139.8
  },
  "luminance": 0.10866
}

Semantic roles & 50–950 ramp

primary
#2A6A18
secondary
#8A3EA0
accent
#42E6C2
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6A18

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

Preview Lab → · Contrast checker → · Palette generator →

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