#2A7B14#2A7B14

#2A7B14 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.155 H 140.2°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#2A7B14
RGBrgb(42, 123, 20)
HSLhsl(107, 72%, 28%)
HSVhsv(107, 84%, 48%)
CMYKcmyk(65.9%, 0%, 83.7%, 51.8%)
CIE-LABlab(45.23, -43.32, 44.70)
CIE-LCHlch(45.23, 62.25, 134.11°)
OKLaboklab(51.36% -0.1189 0.0991)
OKLCHoklch(51.36% 0.155 140.2)
XYZxyz(8.1637, 14.7079, 3.0704)
Luminance0.1471 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B14 #65147B
analogous
#5E7B14 #2A7B14 #147B31
triadic
#2A7B14 #142A7B #7B142A
tetradic
#2A7B14 #145E7B #65147B #7B3114
square
#2A7B14 #145E7B #65147B #7B3114
split-complementary
#2A7B14 #31147B #7B145E
monochromatic
#091A04 #18460B #2A7B14 #3CB01D #52DD2D

Accessibility & contrast

On white

5.33
#2A7B14 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#2A7B14 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7B14
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7B14#FFFFFF#000000##FFFFFF
##2A7B141.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756921
Tritanopia (blue-blind)
#1D7768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7b14;
/* rgb */ color: rgb(42, 123, 20);
/* oklch */ color: oklch(51.4% 0.155 140.2);
Tailwind
colors: {
  custom: {
    50: '#70a25c',
    500: '#2a7b14',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b14;
$custom-light: #70a25c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b14",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 20
  },
  "hsl": {
    "h": 107.184,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51362,
    "c": 0.15474,
    "h": 140.2
  },
  "luminance": 0.14709
}

Semantic roles & 50–950 ramp

primary
#2A7B14
secondary
#973AB1
accent
#39EFC8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7B14

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

Preview Lab → · Contrast checker → · Palette generator →

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