#2A7817#2A7817

#2A7817 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.150 H 140.4°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#2A7817
RGBrgb(42, 120, 23)
HSLhsl(108, 68%, 28%)
HSVhsv(108, 81%, 47%)
CMYKcmyk(65%, 0%, 80.8%, 52.9%)
CIE-LABlab(44.21, -42.02, 42.76)
CIE-LCHlch(44.21, 59.95, 134.50°)
OKLaboklab(50.52% -0.1152 0.0955)
OKLCHoklch(50.52% 0.15 140.4)
XYZxyz(7.8256, 13.9863, 3.0977)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7817 #651778
analogous
#5A7817 #2A7817 #177834
triadic
#2A7817 #172A78 #78172A
tetradic
#2A7817 #175A78 #651778 #783417
square
#2A7817 #175A78 #651778 #783417
split-complementary
#2A7817 #341778 #78175A
monochromatic
#091A05 #18450D #2A7817 #3CAB21 #52D832

Accessibility & contrast

On white

5.53
#2A7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#2A7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7817
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7817#FFFFFF#000000##FFFFFF
##2A78171.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#726622
Tritanopia (blue-blind)
#1E7466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7817;
/* rgb */ color: rgb(42, 120, 23);
/* oklch */ color: oklch(50.5% 0.150 140.4);
Tailwind
colors: {
  custom: {
    50: '#6fa05c',
    500: '#2a7817',
    950: '#000000',
  },
}
SCSS
$custom: #2a7817;
$custom-light: #6fa05c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7817",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 108.247,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50524,
    "c": 0.14963,
    "h": 140.4
  },
  "luminance": 0.13987
}

Semantic roles & 50–950 ramp

primary
#2A7817
secondary
#973EAD
accent
#3DEBC9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2A7817

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

Preview Lab → · Contrast checker → · Palette generator →

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