#2A6918#2A6918

#2A6918 is a mid, vivid green. Relative luminance 0.107; OKLCH L 46.2% C 0.130 H 139.7°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#2A6918
RGBrgb(42, 105, 24)
HSLhsl(107, 63%, 25%)
HSVhsv(107, 77%, 41%)
CMYKcmyk(60%, 0%, 77.1%, 58.8%)
CIE-LABlab(39.00, -36.12, 37.27)
CIE-LCHlch(39.00, 51.90, 134.11°)
OKLaboklab(46.22% -0.0992 0.0842)
OKLCHoklch(46.22% 0.13 139.7)
XYZxyz(6.1710, 10.6608, 2.5965)
Luminance0.1066 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6918 #571869
analogous
#526918 #2A6918 #18692F
triadic
#2A6918 #182A69 #69182A
tetradic
#2A6918 #185269 #571869 #692F18
square
#2A6918 #185269 #571869 #692F18
split-complementary
#2A6918 #2F1869 #691852
monochromatic
#0A1906 #16370D #2A6918 #3E9B23 #52CD2F

Accessibility & contrast

On white

6.70
#2A6918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2A6918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6918
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6918#FFFFFF#000000##FFFFFF
##2A69181.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F09
Deuteranopia (green-blind)
#645A20
Tritanopia (blue-blind)
#236559
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a6918;
/* rgb */ color: rgb(42, 105, 24);
/* oklch */ color: oklch(46.2% 0.130 139.7);
Tailwind
colors: {
  custom: {
    50: '#6c945b',
    500: '#2a6918',
    950: '#000000',
  },
}
SCSS
$custom: #2a6918;
$custom-light: #6c945b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6918",
  "rgb": {
    "r": 42,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 106.667,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.4622,
    "c": 0.13012,
    "h": 139.7
  },
  "luminance": 0.10661
}

Semantic roles & 50–950 ramp

primary
#2A6918
secondary
#893E9F
accent
#42E6C1
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6918

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

Preview Lab → · Contrast checker → · Palette generator →

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