#2A7316#2A7316

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

Color values

HEX#2A7316
RGBrgb(42, 115, 22)
HSLhsl(107, 68%, 27%)
HSVhsv(107, 81%, 45%)
CMYKcmyk(63.5%, 0%, 80.9%, 54.9%)
CIE-LABlab(42.48, -40.20, 41.44)
CIE-LCHlch(42.48, 57.73, 134.13°)
OKLaboklab(49.09% -0.1104 0.0925)
OKLCHoklch(49.09% 0.144 140)
XYZxyz(7.2301, 12.8110, 2.8507)
Luminance0.1281 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7316 #5F1673
analogous
#597316 #2A7316 #167331
triadic
#2A7316 #162A73 #73162A
tetradic
#2A7316 #165973 #5F1673 #733116
square
#2A7316 #165973 #5F1673 #733116
split-complementary
#2A7316 #311673 #731659
monochromatic
#091A05 #17400C #2A7316 #3DA620 #51D72D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7316#FFFFFF#000000##FFFFFF
##2A73161.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)
#766800
Deuteranopia (green-blind)
#6D6221
Tritanopia (blue-blind)
#206F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7316;
/* rgb */ color: rgb(42, 115, 22);
/* oklch */ color: oklch(49.1% 0.144 140.0);
Tailwind
colors: {
  custom: {
    50: '#6e9c5b',
    500: '#2a7316',
    950: '#000000',
  },
}
SCSS
$custom: #2a7316;
$custom-light: #6e9c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7316",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 22
  },
  "hsl": {
    "h": 107.097,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.49086,
    "c": 0.14404,
    "h": 140
  },
  "luminance": 0.12812
}

Semantic roles & 50–950 ramp

primary
#2A7316
secondary
#913CA9
accent
#3DEBC5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7316

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

Preview Lab → · Contrast checker → · Palette generator →

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