#2A6617#2A6617

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

Color values

HEX#2A6617
RGBrgb(42, 102, 23)
HSLhsl(106, 63%, 25%)
HSVhsv(106, 77%, 40%)
CMYKcmyk(58.8%, 0%, 77.5%, 60%)
CIE-LABlab(37.94, -34.98, 36.60)
CIE-LCHlch(37.94, 50.63, 133.71°)
OKLaboklab(45.34% -0.0962 0.0826)
OKLCHoklch(45.34% 0.127 139.4)
XYZxyz(5.8606, 10.0564, 2.4427)
Luminance0.1006 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6617 #531766
analogous
#526617 #2A6617 #17662C
triadic
#2A6617 #172A66 #66172A
tetradic
#2A6617 #175266 #531766 #662C17
square
#2A6617 #175266 #531766 #662C17
split-complementary
#2A6617 #2C1766 #661752
monochromatic
#0A1906 #15340C #2A6617 #3F9822 #53CA2E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A6617#FFFFFF#000000##FFFFFF
##2A66171.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)
#695C08
Deuteranopia (green-blind)
#62571F
Tritanopia (blue-blind)
#246257
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a6617;
/* rgb */ color: rgb(42, 102, 23);
/* oklch */ color: oklch(45.3% 0.127 139.4);
Tailwind
colors: {
  custom: {
    50: '#6b925a',
    500: '#2a6617',
    950: '#000000',
  },
}
SCSS
$custom: #2a6617;
$custom-light: #6b925a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6617",
  "rgb": {
    "r": 42,
    "g": 102,
    "b": 23
  },
  "hsl": {
    "h": 105.57,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.45343,
    "c": 0.12683,
    "h": 139.4
  },
  "luminance": 0.10057
}

Semantic roles & 50–950 ramp

primary
#2A6617
secondary
#853C9C
accent
#42E6BF
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6617

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

Preview Lab → · Contrast checker → · Palette generator →

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