#2A7F14#2A7F14

#2A7F14 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.159 H 140.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2A7F14
RGBrgb(42, 127, 20)
HSLhsl(108, 73%, 29%)
HSVhsv(108, 84%, 50%)
CMYKcmyk(66.9%, 0%, 84.3%, 50.2%)
CIE-LABlab(46.61, -44.78, 45.97)
CIE-LCHlch(46.61, 64.17, 134.25°)
OKLaboklab(52.5% -0.1228 0.1017)
OKLCHoklch(52.5% 0.159 140.4)
XYZxyz(8.6701, 15.7206, 3.2392)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F14 #69147F
analogous
#607F14 #2A7F14 #147F34
triadic
#2A7F14 #142A7F #7F142A
tetradic
#2A7F14 #14607F #69147F #7F3414
square
#2A7F14 #14607F #69147F #7F3414
split-complementary
#2A7F14 #34147F #7F1460
monochromatic
#091A04 #194A0C #2A7F14 #3BB41C #53DE2F

Accessibility & contrast

On white

5.07
#2A7F14 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2A7F14 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F14
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F14#FFFFFF#000000##FFFFFF
##2A7F141.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C22
Tritanopia (blue-blind)
#1C7B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7f14;
/* rgb */ color: rgb(42, 127, 20);
/* oklch */ color: oklch(52.5% 0.159 140.4);
Tailwind
colors: {
  custom: {
    50: '#70a55c',
    500: '#2a7f14',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f14;
$custom-light: #70a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f14",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 20
  },
  "hsl": {
    "h": 107.664,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52501,
    "c": 0.15945,
    "h": 140.4
  },
  "luminance": 0.15721
}

Semantic roles & 50–950 ramp

primary
#2A7F14
secondary
#9B3BB4
accent
#38EFCA
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7F14

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

Preview Lab → · Contrast checker → · Palette generator →

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