#2B7517#2B7517

#2B7517 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.7% C 0.146 H 140.0°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#2B7517
RGBrgb(43, 117, 23)
HSLhsl(107, 67%, 27%)
HSVhsv(107, 80%, 46%)
CMYKcmyk(63.2%, 0%, 80.3%, 54.1%)
CIE-LABlab(43.21, -40.63, 41.80)
CIE-LCHlch(43.21, 58.30, 134.19°)
OKLaboklab(49.7% -0.1115 0.0935)
OKLCHoklch(49.7% 0.146 140)
XYZxyz(7.5119, 13.2973, 2.9812)
Luminance0.1330 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7517 #611775
analogous
#5A7517 #2B7517 #177532
triadic
#2B7517 #172B75 #75172B
tetradic
#2B7517 #175A75 #611775 #753217
square
#2B7517 #175A75 #611775 #753217
split-complementary
#2B7517 #321775 #75175A
monochromatic
#091A05 #18420D #2B7517 #3EA821 #53D630

Accessibility & contrast

On white

5.74
#2B7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#2B7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7517
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7517#FFFFFF#000000##FFFFFF
##2B75171.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A01
Deuteranopia (green-blind)
#6F6422
Tritanopia (blue-blind)
#217163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2b7517;
/* rgb */ color: rgb(43, 117, 23);
/* oklch */ color: oklch(49.7% 0.146 140.0);
Tailwind
colors: {
  custom: {
    50: '#6f9d5c',
    500: '#2b7517',
    950: '#000000',
  },
}
SCSS
$custom: #2b7517;
$custom-light: #6f9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7517",
  "rgb": {
    "r": 43,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 107.234,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49701,
    "c": 0.14552,
    "h": 140
  },
  "luminance": 0.13298
}

Semantic roles & 50–950 ramp

primary
#2B7517
secondary
#933DAA
accent
#3EEAC5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7517

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

Preview Lab → · Contrast checker → · Palette generator →

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