#2A7315#2A7315

#2A7315 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.145 H 139.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#2A7315
RGBrgb(42, 115, 21)
HSLhsl(107, 69%, 27%)
HSVhsv(107, 82%, 45%)
CMYKcmyk(63.5%, 0%, 81.7%, 54.9%)
CIE-LABlab(42.47, -40.27, 41.77)
CIE-LCHlch(42.47, 58.02, 133.95°)
OKLaboklab(49.08% -0.1106 0.0931)
OKLCHoklch(49.08% 0.145 139.9)
XYZxyz(7.2206, 12.8072, 2.8008)
Luminance0.1281 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7315 #5E1573
analogous
#597315 #2A7315 #15732F
triadic
#2A7315 #152A73 #73152A
tetradic
#2A7315 #155973 #5E1573 #732F15
square
#2A7315 #155973 #5E1573 #732F15
split-complementary
#2A7315 #2F1573 #731559
monochromatic
#091A05 #173F0C #2A7315 #3DA71E #51D82A

Accessibility & contrast

On white

5.90
#2A7315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2A7315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7315
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7315#FFFFFF#000000##FFFFFF
##2A73151.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#6D6220
Tritanopia (blue-blind)
#206F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7315;
/* rgb */ color: rgb(42, 115, 21);
/* oklch */ color: oklch(49.1% 0.145 139.9);
Tailwind
colors: {
  custom: {
    50: '#6e9c5b',
    500: '#2a7315',
    950: '#000000',
  },
}
SCSS
$custom: #2a7315;
$custom-light: #6e9c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7315",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 106.596,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.49079,
    "c": 0.14458,
    "h": 139.9
  },
  "luminance": 0.12808
}

Semantic roles & 50–950 ramp

primary
#2A7315
secondary
#903BA9
accent
#3CECC5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7315

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

Preview Lab → · Contrast checker → · Palette generator →

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