#2A7417#2A7417

#2A7417 is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.4% C 0.145 H 140.2°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#2A7417
RGBrgb(42, 116, 23)
HSLhsl(108, 67%, 27%)
HSVhsv(108, 80%, 45%)
CMYKcmyk(63.8%, 0%, 80.2%, 54.5%)
CIE-LABlab(42.83, -40.51, 41.42)
CIE-LCHlch(42.83, 57.94, 134.36°)
OKLaboklab(49.38% -0.1111 0.0927)
OKLCHoklch(49.38% 0.145 140.2)
XYZxyz(7.3546, 13.0442, 2.9407)
Luminance0.1305 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7417 #611774
analogous
#597417 #2A7417 #177433
triadic
#2A7417 #172A74 #74172A
tetradic
#2A7417 #175974 #611774 #743317
square
#2A7417 #175974 #611774 #743317
split-complementary
#2A7417 #331774 #741759
monochromatic
#091A05 #18410D #2A7417 #3CA721 #52D630

Accessibility & contrast

On white

5.82
#2A7417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#2A7417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7417
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7417#FFFFFF#000000##FFFFFF
##2A74171.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776902
Deuteranopia (green-blind)
#6E6321
Tritanopia (blue-blind)
#207063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2a7417;
/* rgb */ color: rgb(42, 116, 23);
/* oklch */ color: oklch(49.4% 0.145 140.2);
Tailwind
colors: {
  custom: {
    50: '#6e9d5c',
    500: '#2a7417',
    950: '#000000',
  },
}
SCSS
$custom: #2a7417;
$custom-light: #6e9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7417",
  "rgb": {
    "r": 42,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 107.742,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.4938,
    "c": 0.14472,
    "h": 140.2
  },
  "luminance": 0.13045
}

Semantic roles & 50–950 ramp

primary
#2A7417
secondary
#933DA9
accent
#3EEAC7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7417

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

Preview Lab → · Contrast checker → · Palette generator →

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