#2A7C14#2A7C14

#2A7C14 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.6% C 0.156 H 140.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#2A7C14
RGBrgb(42, 124, 20)
HSLhsl(107, 72%, 28%)
HSVhsv(107, 84%, 49%)
CMYKcmyk(66.1%, 0%, 83.9%, 51.4%)
CIE-LABlab(45.58, -43.69, 45.02)
CIE-LCHlch(45.58, 62.73, 134.14°)
OKLaboklab(51.65% -0.1198 0.0997)
OKLCHoklch(51.65% 0.156 140.2)
XYZxyz(8.2884, 14.9572, 3.1119)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C14 #66147C
analogous
#5E7C14 #2A7C14 #147C32
triadic
#2A7C14 #142A7C #7C142A
tetradic
#2A7C14 #145E7C #66147C #7C3214
square
#2A7C14 #145E7C #66147C #7C3214
split-complementary
#2A7C14 #32147C #7C145E
monochromatic
#091A04 #18470B #2A7C14 #3CB11D #52DD2D

Accessibility & contrast

On white

5.26
#2A7C14 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2A7C14 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C14
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C14#FFFFFF#000000##FFFFFF
##2A7C141.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766921
Tritanopia (blue-blind)
#1D7869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c14;
/* rgb */ color: rgb(42, 124, 20);
/* oklch */ color: oklch(51.6% 0.156 140.2);
Tailwind
colors: {
  custom: {
    50: '#70a35c',
    500: '#2a7c14',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c14;
$custom-light: #70a35c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c14",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 20
  },
  "hsl": {
    "h": 107.308,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51647,
    "c": 0.15592,
    "h": 140.2
  },
  "luminance": 0.14958
}

Semantic roles & 50–950 ramp

primary
#2A7C14
secondary
#983AB2
accent
#39EFC8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7C14

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

Preview Lab → · Contrast checker → · Palette generator →

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