#2A6517#2A6517

#2A6517 is a mid, vivid green. Relative luminance 0.099; OKLCH L 45.1% C 0.126 H 139.3°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2A6517
RGBrgb(42, 101, 23)
HSLhsl(105, 63%, 24%)
HSVhsv(105, 77%, 40%)
CMYKcmyk(58.4%, 0%, 77.2%, 60.4%)
CIE-LABlab(37.59, -34.57, 36.24)
CIE-LCHlch(37.59, 50.09, 133.65°)
OKLaboklab(45.05% -0.0951 0.0819)
OKLCHoklch(45.05% 0.126 139.3)
XYZxyz(5.7629, 9.8610, 2.4101)
Luminance0.0986 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6517 #521765
analogous
#516517 #2A6517 #17652B
triadic
#2A6517 #172A65 #65172A
tetradic
#2A6517 #175165 #521765 #652B17
square
#2A6517 #175165 #521765 #652B17
split-complementary
#2A6517 #2B1765 #651751
monochromatic
#0A1906 #15330C #2A6517 #3F9722 #53C92E

Accessibility & contrast

On white

7.07
#2A6517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2A6517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6517
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6517#FFFFFF#000000##FFFFFF
##2A65171.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685C09
Deuteranopia (green-blind)
#61571F
Tritanopia (blue-blind)
#246156
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a6517;
/* rgb */ color: rgb(42, 101, 23);
/* oklch */ color: oklch(45.1% 0.126 139.3);
Tailwind
colors: {
  custom: {
    50: '#6b915a',
    500: '#2a6517',
    950: '#000000',
  },
}
SCSS
$custom: #2a6517;
$custom-light: #6b915a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6517",
  "rgb": {
    "r": 42,
    "g": 101,
    "b": 23
  },
  "hsl": {
    "h": 105.385,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.45053,
    "c": 0.12551,
    "h": 139.3
  },
  "luminance": 0.09861
}

Semantic roles & 50–950 ramp

primary
#2A6517
secondary
#843C9B
accent
#42E6BE
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6517

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

Preview Lab → · Contrast checker → · Palette generator →

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