#2A6215#2A6215

#2A6215 is a dark, vivid green. Relative luminance 0.093; OKLCH L 44.2% C 0.123 H 138.7°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#2A6215
RGBrgb(42, 98, 21)
HSLhsl(104, 65%, 23%)
HSVhsv(104, 79%, 38%)
CMYKcmyk(57.1%, 0%, 78.6%, 61.6%)
CIE-LABlab(36.52, -33.48, 35.97)
CIE-LCHlch(36.52, 49.14, 132.95°)
OKLaboklab(44.17% -0.0923 0.081)
OKLCHoklch(44.17% 0.123 138.7)
XYZxyz(5.4577, 9.2813, 2.2132)
Luminance0.0928 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6215 #4D1562
analogous
#506215 #2A6215 #156226
triadic
#2A6215 #152A62 #62152A
tetradic
#2A6215 #155062 #4D1562 #622615
square
#2A6215 #155062 #4D1562 #622615
split-complementary
#2A6215 #261562 #621550
monochromatic
#0B1905 #14300A #2A6215 #409420 #55C72B

Accessibility & contrast

On white

7.35
#2A6215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2A6215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6215
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6215#FFFFFF#000000##FFFFFF
##2A62151.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655906
Deuteranopia (green-blind)
#5E541D
Tritanopia (blue-blind)
#255E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a6215;
/* rgb */ color: rgb(42, 98, 21);
/* oklch */ color: oklch(44.2% 0.123 138.7);
Tailwind
colors: {
  custom: {
    50: '#6a8f58',
    500: '#2a6215',
    950: '#000000',
  },
}
SCSS
$custom: #2a6215;
$custom-light: #6a8f58;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6215",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 21
  },
  "hsl": {
    "h": 103.636,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.44165,
    "c": 0.12282,
    "h": 138.7
  },
  "luminance": 0.09282
}

Semantic roles & 50–950 ramp

primary
#2A6215
secondary
#7F3A99
accent
#40E8BA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A6215

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

Preview Lab → · Contrast checker → · Palette generator →

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