#2A7F17#2A7F17

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

Color values

HEX#2A7F17
RGBrgb(42, 127, 23)
HSLhsl(109, 69%, 29%)
HSVhsv(109, 82%, 50%)
CMYKcmyk(66.9%, 0%, 81.9%, 50.2%)
CIE-LABlab(46.62, -44.60, 45.06)
CIE-LCHlch(46.62, 63.40, 134.70°)
OKLaboklab(52.52% -0.1221 0.1003)
OKLCHoklch(52.52% 0.158 140.6)
XYZxyz(8.6984, 15.7320, 3.3886)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F17 #6C177F
analogous
#5E7F17 #2A7F17 #177F38
triadic
#2A7F17 #172A7F #7F172A
tetradic
#2A7F17 #175E7F #6C177F #7F3817
square
#2A7F17 #175E7F #6C177F #7F3817
split-complementary
#2A7F17 #38177F #7F175E
monochromatic
#091A05 #194B0E #2A7F17 #3BB320 #54DB36

Accessibility & contrast

On white

5.06
#2A7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2A7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F17
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F17#FFFFFF#000000##FFFFFF
##2A7F171.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#786C23
Tritanopia (blue-blind)
#1B7B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7f17;
/* rgb */ color: rgb(42, 127, 23);
/* oklch */ color: oklch(52.5% 0.158 140.6);
Tailwind
colors: {
  custom: {
    50: '#70a55e',
    500: '#2a7f17',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f17;
$custom-light: #70a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f17",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 109.038,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52518,
    "c": 0.15802,
    "h": 140.6
  },
  "luminance": 0.15733
}

Semantic roles & 50–950 ramp

primary
#2A7F17
secondary
#9E3EB4
accent
#3CECCC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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