#2A7C17#2A7C17

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

Color values

HEX#2A7C17
RGBrgb(42, 124, 23)
HSLhsl(109, 69%, 29%)
HSVhsv(109, 81%, 49%)
CMYKcmyk(66.1%, 0%, 81.5%, 51.4%)
CIE-LABlab(45.59, -43.50, 44.08)
CIE-LCHlch(45.59, 61.93, 134.62°)
OKLaboklab(51.67% -0.1192 0.0982)
OKLCHoklch(51.67% 0.154 140.5)
XYZxyz(8.3167, 14.9686, 3.2614)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C17 #69177C
analogous
#5D7C17 #2A7C17 #177C37
triadic
#2A7C17 #172A7C #7C172A
tetradic
#2A7C17 #175D7C #69177C #7C3717
square
#2A7C17 #175D7C #69177C #7C3717
split-complementary
#2A7C17 #37177C #7C175D
monochromatic
#091A05 #19480D #2A7C17 #3BB021 #53D934

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7C17#FFFFFF#000000##FFFFFF
##2A7C171.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)
#7F7000
Deuteranopia (green-blind)
#766923
Tritanopia (blue-blind)
#1D7869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c17;
/* rgb */ color: rgb(42, 124, 23);
/* oklch */ color: oklch(51.7% 0.154 140.5);
Tailwind
colors: {
  custom: {
    50: '#70a35d',
    500: '#2a7c17',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c17;
$custom-light: #70a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c17",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 108.713,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51665,
    "c": 0.15445,
    "h": 140.5
  },
  "luminance": 0.14969
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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