#2A7E17#2A7E17

#2A7E17 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.157 H 140.6°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#2A7E17
RGBrgb(42, 126, 23)
HSLhsl(109, 69%, 29%)
HSVhsv(109, 82%, 49%)
CMYKcmyk(66.7%, 0%, 81.7%, 50.6%)
CIE-LABlab(46.28, -44.23, 44.73)
CIE-LCHlch(46.28, 62.91, 134.68°)
OKLaboklab(52.23% -0.1212 0.0996)
OKLCHoklch(52.23% 0.157 140.6)
XYZxyz(8.5699, 15.4750, 3.3458)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E17 #6B177E
analogous
#5E7E17 #2A7E17 #177E38
triadic
#2A7E17 #172A7E #7E172A
tetradic
#2A7E17 #175E7E #6B177E #7E3817
square
#2A7E17 #175E7E #6B177E #7E3817
split-complementary
#2A7E17 #38177E #7E175E
monochromatic
#091A05 #194A0E #2A7E17 #3BB220 #54DA35

Accessibility & contrast

On white

5.13
#2A7E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2A7E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E17
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E17#FFFFFF#000000##FFFFFF
##2A7E171.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#776B23
Tritanopia (blue-blind)
#1C7A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e17;
/* rgb */ color: rgb(42, 126, 23);
/* oklch */ color: oklch(52.2% 0.157 140.6);
Tailwind
colors: {
  custom: {
    50: '#70a45d',
    500: '#2a7e17',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e17;
$custom-light: #70a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e17",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 108.932,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52234,
    "c": 0.15684,
    "h": 140.6
  },
  "luminance": 0.15476
}

Semantic roles & 50–950 ramp

primary
#2A7E17
secondary
#9D3EB3
accent
#3CECCB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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