#2A7115#2A7115

#2A7115 is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.5% C 0.142 H 139.8°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#2A7115
RGBrgb(42, 113, 21)
HSLhsl(106, 69%, 26%)
HSVhsv(106, 81%, 44%)
CMYKcmyk(62.8%, 0%, 81.4%, 55.7%)
CIE-LABlab(41.78, -39.50, 41.11)
CIE-LCHlch(41.78, 57.01, 133.86°)
OKLaboklab(48.51% -0.1085 0.0917)
OKLCHoklch(48.51% 0.142 139.8)
XYZxyz(6.9950, 12.3560, 2.7256)
Luminance0.1236 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7115 #5C1571
analogous
#587115 #2A7115 #15712E
triadic
#2A7115 #152A71 #71152A
tetradic
#2A7115 #155871 #5C1571 #712E15
square
#2A7115 #155871 #5C1571 #712E15
split-complementary
#2A7115 #2E1571 #711558
monochromatic
#0A1A05 #173D0B #2A7115 #3DA51F #51D729

Accessibility & contrast

On white

6.05
#2A7115 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#2A7115 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7115
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7115#FFFFFF#000000##FFFFFF
##2A71151.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746600
Deuteranopia (green-blind)
#6C6020
Tritanopia (blue-blind)
#216D60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7115;
/* rgb */ color: rgb(42, 113, 21);
/* oklch */ color: oklch(48.5% 0.142 139.8);
Tailwind
colors: {
  custom: {
    50: '#6d9a5a',
    500: '#2a7115',
    950: '#000000',
  },
}
SCSS
$custom: #2a7115;
$custom-light: #6d9a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7115",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 21
  },
  "hsl": {
    "h": 106.304,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.48505,
    "c": 0.1421,
    "h": 139.8
  },
  "luminance": 0.12357
}

Semantic roles & 50–950 ramp

primary
#2A7115
secondary
#8E3BA7
accent
#3CEBC4
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A7115

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

Preview Lab → · Contrast checker → · Palette generator →

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