#2A6B18#2A6B18

#2A6B18 is a mid, vivid green. Relative luminance 0.111; OKLCH L 46.8% C 0.133 H 139.8°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#2A6B18
RGBrgb(42, 107, 24)
HSLhsl(107, 63%, 26%)
HSVhsv(107, 78%, 42%)
CMYKcmyk(60.7%, 0%, 77.6%, 58%)
CIE-LABlab(39.70, -36.93, 37.97)
CIE-LCHlch(39.70, 52.97, 134.20°)
OKLaboklab(46.8% -0.1014 0.0856)
OKLCHoklch(46.8% 0.133 139.8)
XYZxyz(6.3771, 11.0730, 2.6652)
Luminance0.1107 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6B18 #59186B
analogous
#536B18 #2A6B18 #186B2F
triadic
#2A6B18 #182A6B #6B182A
tetradic
#2A6B18 #18536B #59186B #6B2F18
square
#2A6B18 #18536B #59186B #6B2F18
split-complementary
#2A6B18 #2F186B #6B1853
monochromatic
#0A1906 #16390D #2A6B18 #3E9D23 #51CF2E

Accessibility & contrast

On white

6.53
#2A6B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#2A6B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6B18
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6B18#FFFFFF#000000##FFFFFF
##2A6B181.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6108
Deuteranopia (green-blind)
#665B21
Tritanopia (blue-blind)
#22675B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a6b18;
/* rgb */ color: rgb(42, 107, 24);
/* oklch */ color: oklch(46.8% 0.133 139.8);
Tailwind
colors: {
  custom: {
    50: '#6c965b',
    500: '#2a6b18',
    950: '#000000',
  },
}
SCSS
$custom: #2a6b18;
$custom-light: #6c965b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6b18",
  "rgb": {
    "r": 42,
    "g": 107,
    "b": 24
  },
  "hsl": {
    "h": 106.988,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.46798,
    "c": 0.13273,
    "h": 139.8
  },
  "luminance": 0.11074
}

Semantic roles & 50–950 ramp

primary
#2A6B18
secondary
#8B3EA1
accent
#41E6C3
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6B18

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

Preview Lab → · Contrast checker → · Palette generator →

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