#2A6E18#2A6E18

#2A6E18 is a mid, vivid green. Relative luminance 0.117; OKLCH L 47.7% C 0.137 H 140.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#2A6E18
RGBrgb(42, 110, 24)
HSLhsl(107, 64%, 26%)
HSVhsv(107, 78%, 43%)
CMYKcmyk(61.8%, 0%, 78.2%, 56.9%)
CIE-LABlab(40.75, -38.12, 39.01)
CIE-LCHlch(40.75, 54.54, 134.33°)
OKLaboklab(47.66% -0.1046 0.0878)
OKLCHoklch(47.66% 0.137 140)
XYZxyz(6.6953, 11.7094, 2.7713)
Luminance0.1171 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6E18 #5C186E
analogous
#556E18 #2A6E18 #186E31
triadic
#2A6E18 #182A6E #6E182A
tetradic
#2A6E18 #18556E #5C186E #6E3118
square
#2A6E18 #18556E #5C186E #6E3118
split-complementary
#2A6E18 #31186E #6E1855
monochromatic
#0A1905 #173C0D #2A6E18 #3DA023 #51D22F

Accessibility & contrast

On white

6.28
#2A6E18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2A6E18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6E18
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6E18#FFFFFF#000000##FFFFFF
##2A6E181.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716407
Deuteranopia (green-blind)
#695E21
Tritanopia (blue-blind)
#216A5D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a6e18;
/* rgb */ color: rgb(42, 110, 24);
/* oklch */ color: oklch(47.7% 0.137 140.0);
Tailwind
colors: {
  custom: {
    50: '#6d985b',
    500: '#2a6e18',
    950: '#000000',
  },
}
SCSS
$custom: #2a6e18;
$custom-light: #6d985b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6e18",
  "rgb": {
    "r": 42,
    "g": 110,
    "b": 24
  },
  "hsl": {
    "h": 107.442,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.47663,
    "c": 0.13659,
    "h": 140
  },
  "luminance": 0.1171
}

Semantic roles & 50–950 ramp

primary
#2A6E18
secondary
#8E3EA4
accent
#41E7C4
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A6E18

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

Preview Lab → · Contrast checker → · Palette generator →

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