#2A7D17#2A7D17

#2A7D17 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.156 H 140.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2A7D17
RGBrgb(42, 125, 23)
HSLhsl(109, 69%, 29%)
HSVhsv(109, 82%, 49%)
CMYKcmyk(66.4%, 0%, 81.6%, 51%)
CIE-LABlab(45.93, -43.87, 44.41)
CIE-LCHlch(45.93, 62.42, 134.65°)
OKLaboklab(51.95% -0.1202 0.0989)
OKLCHoklch(51.95% 0.156 140.5)
XYZxyz(8.4427, 15.2205, 3.3034)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D17 #6A177D
analogous
#5D7D17 #2A7D17 #177D37
triadic
#2A7D17 #172A7D #7D172A
tetradic
#2A7D17 #175D7D #6A177D #7D3717
square
#2A7D17 #175D7D #6A177D #7D3717
split-complementary
#2A7D17 #37177D #7D175D
monochromatic
#091A05 #19490D #2A7D17 #3BB121 #53DA35

Accessibility & contrast

On white

5.19
#2A7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2A7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D17
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D17#FFFFFF#000000##FFFFFF
##2A7D171.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#776A23
Tritanopia (blue-blind)
#1C796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d17;
/* rgb */ color: rgb(42, 125, 23);
/* oklch */ color: oklch(51.9% 0.156 140.5);
Tailwind
colors: {
  custom: {
    50: '#70a35d',
    500: '#2a7d17',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d17;
$custom-light: #70a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d17",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 108.824,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5195,
    "c": 0.15564,
    "h": 140.5
  },
  "luminance": 0.15221
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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