#2B7717#2B7717

#2B7717 is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.3% C 0.148 H 140.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#2B7717
RGBrgb(43, 119, 23)
HSLhsl(108, 68%, 28%)
HSVhsv(108, 81%, 47%)
CMYKcmyk(63.9%, 0%, 80.7%, 53.3%)
CIE-LABlab(43.90, -41.39, 42.47)
CIE-LCHlch(43.90, 59.30, 134.26°)
OKLaboklab(50.27% -0.1136 0.0949)
OKLCHoklch(50.27% 0.148 140.1)
XYZxyz(7.7474, 13.7684, 3.0597)
Luminance0.1377 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7717 #631777
analogous
#5B7717 #2B7717 #177733
triadic
#2B7717 #172B77 #77172B
tetradic
#2B7717 #175B77 #631777 #773317
square
#2B7717 #175B77 #631777 #773317
split-complementary
#2B7717 #331777 #77175B
monochromatic
#091A05 #18440D #2B7717 #3EAA21 #54D731

Accessibility & contrast

On white

5.59
#2B7717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#2B7717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7717
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7717#FFFFFF#000000##FFFFFF
##2B77171.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C00
Deuteranopia (green-blind)
#716522
Tritanopia (blue-blind)
#207365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2b7717;
/* rgb */ color: rgb(43, 119, 23);
/* oklch */ color: oklch(50.3% 0.148 140.1);
Tailwind
colors: {
  custom: {
    50: '#6f9f5c',
    500: '#2b7717',
    950: '#000000',
  },
}
SCSS
$custom: #2b7717;
$custom-light: #6f9f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7717",
  "rgb": {
    "r": 43,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 107.5,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.50273,
    "c": 0.14798,
    "h": 140.1
  },
  "luminance": 0.13769
}

Semantic roles & 50–950 ramp

primary
#2B7717
secondary
#953EAC
accent
#3DEAC6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7717

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

Preview Lab → · Contrast checker → · Palette generator →

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