#2A7514#2A7514

#2A7514 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.6% C 0.148 H 139.9°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#2A7514
RGBrgb(42, 117, 20)
HSLhsl(106, 71%, 27%)
HSVhsv(106, 83%, 46%)
CMYKcmyk(64.1%, 0%, 82.9%, 54.1%)
CIE-LABlab(43.16, -41.09, 42.76)
CIE-LCHlch(43.16, 59.30, 133.86°)
OKLaboklab(49.65% -0.1129 0.095)
OKLCHoklch(49.65% 0.148 139.9)
XYZxyz(7.4421, 13.2646, 2.8298)
Luminance0.1326 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7514 #5F1475
analogous
#5B7514 #2A7514 #14752F
triadic
#2A7514 #142A75 #75142A
tetradic
#2A7514 #145B75 #5F1475 #752F14
square
#2A7514 #145B75 #5F1475 #752F14
split-complementary
#2A7514 #2F1475 #75145B
monochromatic
#091A04 #17410B #2A7514 #3DA91D #51DA29

Accessibility & contrast

On white

5.75
#2A7514 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#2A7514 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7514
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7514#FFFFFF#000000##FFFFFF
##2A75141.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A00
Deuteranopia (green-blind)
#6F6420
Tritanopia (blue-blind)
#207163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2a7514;
/* rgb */ color: rgb(42, 117, 20);
/* oklch */ color: oklch(49.6% 0.148 139.9);
Tailwind
colors: {
  custom: {
    50: '#6e9d5b',
    500: '#2a7514',
    950: '#000000',
  },
}
SCSS
$custom: #2a7514;
$custom-light: #6e9d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7514",
  "rgb": {
    "r": 42,
    "g": 117,
    "b": 20
  },
  "hsl": {
    "h": 106.392,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.49647,
    "c": 0.14753,
    "h": 139.9
  },
  "luminance": 0.13265
}

Semantic roles & 50–950 ramp

primary
#2A7514
secondary
#913AAB
accent
#3AEEC5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7514

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

Preview Lab → · Contrast checker → · Palette generator →

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