#2A6817#2A6817

#2A6817 is a mid, vivid green. Relative luminance 0.105; OKLCH L 45.9% C 0.129 H 139.5°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#2A6817
RGBrgb(42, 104, 23)
HSLhsl(106, 64%, 25%)
HSVhsv(106, 78%, 41%)
CMYKcmyk(59.6%, 0%, 77.9%, 59.2%)
CIE-LABlab(38.65, -35.80, 37.30)
CIE-LCHlch(38.65, 51.70, 133.82°)
OKLaboklab(45.92% -0.0984 0.0841)
OKLCHoklch(45.92% 0.129 139.5)
XYZxyz(6.0596, 10.4542, 2.5090)
Luminance0.1046 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6817 #551768
analogous
#536817 #2A6817 #17682D
triadic
#2A6817 #172A68 #68172A
tetradic
#2A6817 #175368 #551768 #682D17
square
#2A6817 #175368 #551768 #682D17
split-complementary
#2A6817 #2D1768 #681753
monochromatic
#0A1906 #16360C #2A6817 #3E9A22 #52CC2D

Accessibility & contrast

On white

6.79
#2A6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2A6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6817
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6817#FFFFFF#000000##FFFFFF
##2A68171.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E07
Deuteranopia (green-blind)
#63591F
Tritanopia (blue-blind)
#236458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a6817;
/* rgb */ color: rgb(42, 104, 23);
/* oklch */ color: oklch(45.9% 0.129 139.5);
Tailwind
colors: {
  custom: {
    50: '#6b945a',
    500: '#2a6817',
    950: '#000000',
  },
}
SCSS
$custom: #2a6817;
$custom-light: #6b945a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6817",
  "rgb": {
    "r": 42,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 105.926,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.45922,
    "c": 0.12946,
    "h": 139.5
  },
  "luminance": 0.10455
}

Semantic roles & 50–950 ramp

primary
#2A6817
secondary
#873D9E
accent
#41E7C0
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6817

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

Preview Lab → · Contrast checker → · Palette generator →

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