#2A7A17#2A7A17

#2A7A17 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.152 H 140.4°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#2A7A17
RGBrgb(42, 122, 23)
HSLhsl(108, 68%, 28%)
HSVhsv(108, 81%, 48%)
CMYKcmyk(65.6%, 0%, 81.1%, 52.2%)
CIE-LABlab(44.90, -42.77, 43.42)
CIE-LCHlch(44.90, 60.95, 134.56°)
OKLaboklab(51.1% -0.1172 0.0969)
OKLCHoklch(51.1% 0.152 140.4)
XYZxyz(8.0686, 14.4724, 3.1787)
Luminance0.1447 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A17 #67177A
analogous
#5B7A17 #2A7A17 #177A35
triadic
#2A7A17 #172A7A #7A172A
tetradic
#2A7A17 #175B7A #67177A #7A3517
square
#2A7A17 #175B7A #67177A #7A3517
split-complementary
#2A7A17 #35177A #7A175B
monochromatic
#091A05 #18470D #2A7A17 #3CAD21 #53D933

Accessibility & contrast

On white

5.39
#2A7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#2A7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A17
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A17#FFFFFF#000000##FFFFFF
##2A7A171.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#746822
Tritanopia (blue-blind)
#1D7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a17;
/* rgb */ color: rgb(42, 122, 23);
/* oklch */ color: oklch(51.1% 0.152 140.4);
Tailwind
colors: {
  custom: {
    50: '#6fa15d',
    500: '#2a7a17',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a17;
$custom-light: #6fa15d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a17",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 108.485,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51095,
    "c": 0.15205,
    "h": 140.4
  },
  "luminance": 0.14473
}

Semantic roles & 50–950 ramp

primary
#2A7A17
secondary
#993EAF
accent
#3DEBCA
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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