#2A6615#2A6615

#2A6615 is a mid, vivid green. Relative luminance 0.100; OKLCH L 45.3% C 0.128 H 139.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2A6615
RGBrgb(42, 102, 21)
HSLhsl(104, 66%, 24%)
HSVhsv(104, 79%, 40%)
CMYKcmyk(58.8%, 0%, 79.4%, 60%)
CIE-LABlab(37.93, -35.14, 37.37)
CIE-LCHlch(37.93, 51.29, 133.24°)
OKLaboklab(45.33% -0.0968 0.0839)
OKLCHoklch(45.33% 0.128 139.1)
XYZxyz(5.8413, 10.0486, 2.3411)
Luminance0.1005 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6615 #511566
analogous
#536615 #2A6615 #156628
triadic
#2A6615 #152A66 #66152A
tetradic
#2A6615 #155366 #511566 #662815
square
#2A6615 #155366 #511566 #662815
split-complementary
#2A6615 #281566 #661553
monochromatic
#0A1905 #15330B #2A6615 #3F991F #54CC2A

Accessibility & contrast

On white

6.98
#2A6615 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A6615
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6615#FFFFFF#000000##FFFFFF
##2A66151.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C05
Deuteranopia (green-blind)
#62571E
Tritanopia (blue-blind)
#246257
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a6615;
/* rgb */ color: rgb(42, 102, 21);
/* oklch */ color: oklch(45.3% 0.128 139.1);
Tailwind
colors: {
  custom: {
    50: '#6b9259',
    500: '#2a6615',
    950: '#000000',
  },
}
SCSS
$custom: #2a6615;
$custom-light: #6b9259;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6615",
  "rgb": {
    "r": 42,
    "g": 102,
    "b": 21
  },
  "hsl": {
    "h": 104.444,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.45327,
    "c": 0.1281,
    "h": 139.1
  },
  "luminance": 0.10049
}

Semantic roles & 50–950 ramp

primary
#2A6615
secondary
#833A9D
accent
#3FE9BD
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6615

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

Preview Lab → · Contrast checker → · Palette generator →

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