#2A7312#2A7312

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

Color values

HEX#2A7312
RGBrgb(42, 115, 18)
HSLhsl(105, 73%, 26%)
HSVhsv(105, 84%, 45%)
CMYKcmyk(63.5%, 0%, 84.3%, 54.9%)
CIE-LABlab(42.46, -40.46, 42.73)
CIE-LCHlch(42.46, 58.84, 133.43°)
OKLaboklab(49.06% -0.1113 0.0947)
OKLCHoklch(49.06% 0.146 139.6)
XYZxyz(7.1944, 12.7967, 2.6630)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7312 #5B1273
analogous
#5A7312 #2A7312 #12732A
triadic
#2A7312 #122A73 #73122A
tetradic
#2A7312 #125A73 #5B1273 #732A12
square
#2A7312 #125A73 #5B1273 #732A12
split-complementary
#2A7312 #2A1273 #73125A
monochromatic
#0A1A04 #173E0A #2A7312 #3DA81A #51DD23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7312#FFFFFF#000000##FFFFFF
##2A73121.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)
#6E621E
Tritanopia (blue-blind)
#216F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7312;
/* rgb */ color: rgb(42, 115, 18);
/* oklch */ color: oklch(49.1% 0.146 139.6);
Tailwind
colors: {
  custom: {
    50: '#6e9c5a',
    500: '#2a7312',
    950: '#000000',
  },
}
SCSS
$custom: #2a7312;
$custom-light: #6e9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7312",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 105.155,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.49061,
    "c": 0.14608,
    "h": 139.6
  },
  "luminance": 0.12797
}

Semantic roles & 50–950 ramp

primary
#2A7312
secondary
#8D37AA
accent
#38F0C2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7312

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

Preview Lab → · Contrast checker → · Palette generator →

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