#2A7917#2A7917

#2A7917 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.151 H 140.4°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#2A7917
RGBrgb(42, 121, 23)
HSLhsl(108, 68%, 28%)
HSVhsv(108, 81%, 47%)
CMYKcmyk(65.3%, 0%, 81%, 52.5%)
CIE-LABlab(44.56, -42.39, 43.09)
CIE-LCHlch(44.56, 60.45, 134.53°)
OKLaboklab(50.81% -0.1162 0.0962)
OKLCHoklch(50.81% 0.151 140.4)
XYZxyz(7.9465, 14.2281, 3.1380)
Luminance0.1423 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7917 #661779
analogous
#5B7917 #2A7917 #177935
triadic
#2A7917 #172A79 #79172A
tetradic
#2A7917 #175B79 #661779 #793517
square
#2A7917 #175B79 #661779 #793517
split-complementary
#2A7917 #351779 #79175B
monochromatic
#091A05 #18460D #2A7917 #3CAC21 #52D832

Accessibility & contrast

On white

5.46
#2A7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#2A7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7917
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7917#FFFFFF#000000##FFFFFF
##2A79171.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#736722
Tritanopia (blue-blind)
#1E7567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7917;
/* rgb */ color: rgb(42, 121, 23);
/* oklch */ color: oklch(50.8% 0.151 140.4);
Tailwind
colors: {
  custom: {
    50: '#6fa05d',
    500: '#2a7917',
    950: '#000000',
  },
}
SCSS
$custom: #2a7917;
$custom-light: #6fa05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7917",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 108.367,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5081,
    "c": 0.15084,
    "h": 140.4
  },
  "luminance": 0.14229
}

Semantic roles & 50–950 ramp

primary
#2A7917
secondary
#983EAE
accent
#3DEBC9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2A7917

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

Preview Lab → · Contrast checker → · Palette generator →

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