#2A7717#2A7717

#2A7717 is a mid, vivid green. Relative luminance 0.137; OKLCH L 50.2% C 0.148 H 140.3°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#2A7717
RGBrgb(42, 119, 23)
HSLhsl(108, 68%, 28%)
HSVhsv(108, 81%, 47%)
CMYKcmyk(64.7%, 0%, 80.7%, 53.3%)
CIE-LABlab(43.87, -41.65, 42.43)
CIE-LCHlch(43.87, 59.45, 134.47°)
OKLaboklab(50.24% -0.1142 0.0948)
OKLCHoklch(50.24% 0.148 140.3)
XYZxyz(7.7060, 13.7470, 3.0578)
Luminance0.1375 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7717 #641777
analogous
#5A7717 #2A7717 #177734
triadic
#2A7717 #172A77 #77172A
tetradic
#2A7717 #175A77 #641777 #773417
square
#2A7717 #175A77 #641777 #773417
split-complementary
#2A7717 #341777 #77175A
monochromatic
#091A05 #18440D #2A7717 #3CAA21 #52D731

Accessibility & contrast

On white

5.60
#2A7717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#2A7717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7717
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7717#FFFFFF#000000##FFFFFF
##2A77171.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C00
Deuteranopia (green-blind)
#716522
Tritanopia (blue-blind)
#1F7365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2a7717;
/* rgb */ color: rgb(42, 119, 23);
/* oklch */ color: oklch(50.2% 0.148 140.3);
Tailwind
colors: {
  custom: {
    50: '#6f9f5c',
    500: '#2a7717',
    950: '#000000',
  },
}
SCSS
$custom: #2a7717;
$custom-light: #6f9f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7717",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 108.125,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.50239,
    "c": 0.14841,
    "h": 140.3
  },
  "luminance": 0.13748
}

Semantic roles & 50–950 ramp

primary
#2A7717
secondary
#963EAC
accent
#3DEAC8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7717

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

Preview Lab → · Contrast checker → · Palette generator →

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