#2A7415#2A7415

#2A7415 is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.4% C 0.146 H 140.0°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#2A7415
RGBrgb(42, 116, 21)
HSLhsl(107, 69%, 27%)
HSVhsv(107, 82%, 45%)
CMYKcmyk(63.8%, 0%, 81.9%, 54.5%)
CIE-LABlab(42.82, -40.65, 42.10)
CIE-LCHlch(42.82, 58.52, 133.99°)
OKLaboklab(49.37% -0.1116 0.0938)
OKLCHoklch(49.37% 0.146 140)
XYZxyz(7.3353, 13.0365, 2.8391)
Luminance0.1304 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7415 #5F1574
analogous
#5A7415 #2A7415 #157430
triadic
#2A7415 #152A74 #74152A
tetradic
#2A7415 #155A74 #5F1574 #743015
square
#2A7415 #155A74 #5F1574 #743015
split-complementary
#2A7415 #301574 #74155A
monochromatic
#091A05 #17400C #2A7415 #3DA81E #51D92B

Accessibility & contrast

On white

5.82
#2A7415 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#2A7415 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7415
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7415#FFFFFF#000000##FFFFFF
##2A74151.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#6E6320
Tritanopia (blue-blind)
#207062
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2a7415;
/* rgb */ color: rgb(42, 116, 21);
/* oklch */ color: oklch(49.4% 0.146 140.0);
Tailwind
colors: {
  custom: {
    50: '#6e9d5b',
    500: '#2a7415',
    950: '#000000',
  },
}
SCSS
$custom: #2a7415;
$custom-light: #6e9d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7415",
  "rgb": {
    "r": 42,
    "g": 116,
    "b": 21
  },
  "hsl": {
    "h": 106.737,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.49366,
    "c": 0.1458,
    "h": 140
  },
  "luminance": 0.13037
}

Semantic roles & 50–950 ramp

primary
#2A7415
secondary
#913BAA
accent
#3CECC5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7415

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

Preview Lab → · Contrast checker → · Palette generator →

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