#2A7715#2A7715

#2A7715 is a mid, vivid green. Relative luminance 0.137; OKLCH L 50.2% C 0.149 H 140.1°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#2A7715
RGBrgb(42, 119, 21)
HSLhsl(107, 70%, 27%)
HSVhsv(107, 82%, 47%)
CMYKcmyk(64.7%, 0%, 82.4%, 53.3%)
CIE-LABlab(43.86, -41.78, 43.09)
CIE-LCHlch(43.86, 60.02, 134.12°)
OKLaboklab(50.23% -0.1147 0.0959)
OKLCHoklch(50.23% 0.149 140.1)
XYZxyz(7.6867, 13.7393, 2.9562)
Luminance0.1374 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7715 #621577
analogous
#5B7715 #2A7715 #157731
triadic
#2A7715 #152A77 #77152A
tetradic
#2A7715 #155B77 #621577 #773115
square
#2A7715 #155B77 #621577 #773115
split-complementary
#2A7715 #311577 #77155B
monochromatic
#091A05 #18430C #2A7715 #3CAB1E #52DA2D

Accessibility & contrast

On white

5.60
#2A7715 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#2A7715 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7715
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7715#FFFFFF#000000##FFFFFF
##2A77151.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#716521
Tritanopia (blue-blind)
#1F7365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2a7715;
/* rgb */ color: rgb(42, 119, 21);
/* oklch */ color: oklch(50.2% 0.149 140.1);
Tailwind
colors: {
  custom: {
    50: '#6f9f5b',
    500: '#2a7715',
    950: '#000000',
  },
}
SCSS
$custom: #2a7715;
$custom-light: #6f9f5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7715",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 21
  },
  "hsl": {
    "h": 107.143,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.50226,
    "c": 0.14945,
    "h": 140.1
  },
  "luminance": 0.1374
}

Semantic roles & 50–950 ramp

primary
#2A7715
secondary
#943BAD
accent
#3BEDC7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7715

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

Preview Lab → · Contrast checker → · Palette generator →

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