#2A6815#2A6815

#2A6815 is a mid, vivid green. Relative luminance 0.104; OKLCH L 45.9% C 0.131 H 139.2°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2A6815
RGBrgb(42, 104, 21)
HSLhsl(105, 66%, 25%)
HSVhsv(105, 80%, 41%)
CMYKcmyk(59.6%, 0%, 79.8%, 59.2%)
CIE-LABlab(38.63, -35.95, 38.06)
CIE-LCHlch(38.63, 52.36, 133.37°)
OKLaboklab(45.91% -0.099 0.0854)
OKLCHoklch(45.91% 0.131 139.2)
XYZxyz(6.0403, 10.4465, 2.4074)
Luminance0.1045 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6815 #531568
analogous
#546815 #2A6815 #156829
triadic
#2A6815 #152A68 #68152A
tetradic
#2A6815 #155468 #531568 #682915
square
#2A6815 #155468 #531568 #682915
split-complementary
#2A6815 #291568 #681554
monochromatic
#0A1905 #15350B #2A6815 #3F9B1F #53CE2A

Accessibility & contrast

On white

6.80
#2A6815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A6815
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6815#FFFFFF#000000##FFFFFF
##2A68151.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a6815;
/* rgb */ color: rgb(42, 104, 21);
/* oklch */ color: oklch(45.9% 0.131 139.2);
Tailwind
colors: {
  custom: {
    50: '#6c9459',
    500: '#2a6815',
    950: '#000000',
  },
}
SCSS
$custom: #2a6815;
$custom-light: #6c9459;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6815",
  "rgb": {
    "r": 42,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 104.819,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.45907,
    "c": 0.1307,
    "h": 139.2
  },
  "luminance": 0.10447
}

Semantic roles & 50–950 ramp

primary
#2A6815
secondary
#853A9F
accent
#3EE9BE
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6815

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

Preview Lab → · Contrast checker → · Palette generator →

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