#2A6618#2A6618

#2A6618 is a mid, vivid green. Relative luminance 0.101; OKLCH L 45.4% C 0.126 H 139.5°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#2A6618
RGBrgb(42, 102, 24)
HSLhsl(106, 62%, 25%)
HSVhsv(106, 76%, 40%)
CMYKcmyk(58.8%, 0%, 76.5%, 60%)
CIE-LABlab(37.95, -34.90, 36.20)
CIE-LCHlch(37.95, 50.28, 133.95°)
OKLaboklab(45.35% -0.0959 0.0819)
OKLCHoklch(45.35% 0.126 139.5)
XYZxyz(5.8708, 10.0604, 2.4965)
Luminance0.1006 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6618 #541866
analogous
#516618 #2A6618 #18662D
triadic
#2A6618 #182A66 #66182A
tetradic
#2A6618 #185166 #541866 #662D18
square
#2A6618 #185166 #541866 #662D18
split-complementary
#2A6618 #2D1866 #661851
monochromatic
#0A1906 #16340C #2A6618 #3E9824 #53C92F

Accessibility & contrast

On white

6.97
#2A6618 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A6618
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6618#FFFFFF#000000##FFFFFF
##2A66181.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C0A
Deuteranopia (green-blind)
#615720
Tritanopia (blue-blind)
#246257
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a6618;
/* rgb */ color: rgb(42, 102, 24);
/* oklch */ color: oklch(45.4% 0.126 139.5);
Tailwind
colors: {
  custom: {
    50: '#6b925a',
    500: '#2a6618',
    950: '#000000',
  },
}
SCSS
$custom: #2a6618;
$custom-light: #6b925a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6618",
  "rgb": {
    "r": 42,
    "g": 102,
    "b": 24
  },
  "hsl": {
    "h": 106.154,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45351,
    "c": 0.12616,
    "h": 139.5
  },
  "luminance": 0.10061
}

Semantic roles & 50–950 ramp

primary
#2A6618
secondary
#863E9C
accent
#43E5C0
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6618

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

Preview Lab → · Contrast checker → · Palette generator →

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