#2A7313#2A7313

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

Color values

HEX#2A7313
RGBrgb(42, 115, 19)
HSLhsl(106, 72%, 26%)
HSVhsv(106, 83%, 45%)
CMYKcmyk(63.5%, 0%, 83.5%, 54.9%)
CIE-LABlab(42.46, -40.40, 42.42)
CIE-LCHlch(42.46, 58.58, 133.60°)
OKLaboklab(49.07% -0.1111 0.0942)
OKLCHoklch(49.07% 0.146 139.7)
XYZxyz(7.2028, 12.8001, 2.7071)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7313 #5C1373
analogous
#5A7313 #2A7313 #13732C
triadic
#2A7313 #132A73 #73132A
tetradic
#2A7313 #135A73 #5C1373 #732C13
square
#2A7313 #135A73 #5C1373 #732C13
split-complementary
#2A7313 #2C1373 #73135A
monochromatic
#0A1A04 #173E0A #2A7313 #3DA81C #51DB25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7313#FFFFFF#000000##FFFFFF
##2A73131.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: #2a7313;
/* rgb */ color: rgb(42, 115, 19);
/* oklch */ color: oklch(49.1% 0.146 139.7);
Tailwind
colors: {
  custom: {
    50: '#6e9c5a',
    500: '#2a7313',
    950: '#000000',
  },
}
SCSS
$custom: #2a7313;
$custom-light: #6e9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7313",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 19
  },
  "hsl": {
    "h": 105.625,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.49067,
    "c": 0.1456,
    "h": 139.7
  },
  "luminance": 0.12801
}

Semantic roles & 50–950 ramp

primary
#2A7313
secondary
#8E38AA
accent
#39EEC3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7313

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

Preview Lab → · Contrast checker → · Palette generator →

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