#2A7314#2A7314

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

Color values

HEX#2A7314
RGBrgb(42, 115, 20)
HSLhsl(106, 70%, 26%)
HSVhsv(106, 83%, 45%)
CMYKcmyk(63.5%, 0%, 82.6%, 54.9%)
CIE-LABlab(42.47, -40.33, 42.10)
CIE-LCHlch(42.47, 58.30, 133.77°)
OKLaboklab(49.07% -0.1108 0.0936)
OKLCHoklch(49.07% 0.145 139.8)
XYZxyz(7.2115, 12.8035, 2.7530)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7314 #5D1473
analogous
#5A7314 #2A7314 #14732E
triadic
#2A7314 #142A73 #73142A
tetradic
#2A7314 #145A73 #5D1473 #732E14
square
#2A7314 #145A73 #5D1473 #732E14
split-complementary
#2A7314 #2E1473 #73145A
monochromatic
#0A1A05 #173F0B #2A7314 #3DA71D #51DA28

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7314#FFFFFF#000000##FFFFFF
##2A73141.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)
#6E621F
Tritanopia (blue-blind)
#206F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7314;
/* rgb */ color: rgb(42, 115, 20);
/* oklch */ color: oklch(49.1% 0.145 139.8);
Tailwind
colors: {
  custom: {
    50: '#6e9c5a',
    500: '#2a7314',
    950: '#000000',
  },
}
SCSS
$custom: #2a7314;
$custom-light: #6e9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7314",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 20
  },
  "hsl": {
    "h": 106.105,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49073,
    "c": 0.1451,
    "h": 139.8
  },
  "luminance": 0.12804
}

Semantic roles & 50–950 ramp

primary
#2A7314
secondary
#8F3AA9
accent
#3BEDC4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7314

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

Preview Lab → · Contrast checker → · Palette generator →

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