#2A7317#2A7317

#2A7317 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.143 H 140.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2A7317
RGBrgb(42, 115, 23)
HSLhsl(108, 67%, 27%)
HSVhsv(108, 80%, 45%)
CMYKcmyk(63.5%, 0%, 80%, 54.9%)
CIE-LABlab(42.48, -40.13, 41.09)
CIE-LCHlch(42.48, 57.44, 134.32°)
OKLaboklab(49.09% -0.1101 0.092)
OKLCHoklch(49.09% 0.143 140.1)
XYZxyz(7.2399, 12.8149, 2.9024)
Luminance0.1282 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7317 #601773
analogous
#587317 #2A7317 #177332
triadic
#2A7317 #172A73 #73172A
tetradic
#2A7317 #175873 #601773 #733217
square
#2A7317 #175873 #601773 #733217
split-complementary
#2A7317 #321773 #731758
monochromatic
#091A05 #17400D #2A7317 #3DA621 #51D52F

Accessibility & contrast

On white

5.89
#2A7317 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2A7317 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7317
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7317#FFFFFF#000000##FFFFFF
##2A73171.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766802
Deuteranopia (green-blind)
#6D6221
Tritanopia (blue-blind)
#206F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7317;
/* rgb */ color: rgb(42, 115, 23);
/* oklch */ color: oklch(49.1% 0.143 140.1);
Tailwind
colors: {
  custom: {
    50: '#6e9c5c',
    500: '#2a7317',
    950: '#000000',
  },
}
SCSS
$custom: #2a7317;
$custom-light: #6e9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7317",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 23
  },
  "hsl": {
    "h": 107.609,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.49093,
    "c": 0.14348,
    "h": 140.1
  },
  "luminance": 0.12816
}

Semantic roles & 50–950 ramp

primary
#2A7317
secondary
#923DA9
accent
#3EEAC6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7317

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

Preview Lab → · Contrast checker → · Palette generator →

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