#2B7217#2B7217

#2B7217 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.142 H 139.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#2B7217
RGBrgb(43, 114, 23)
HSLhsl(107, 66%, 27%)
HSVhsv(107, 80%, 45%)
CMYKcmyk(62.3%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.17, -39.48, 40.79)
CIE-LCHlch(42.17, 56.77, 134.06°)
OKLaboklab(48.84% -0.1084 0.0914)
OKLCHoklch(48.84% 0.142 139.9)
XYZxyz(7.1679, 12.6094, 2.8666)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7217 #5E1772
analogous
#597217 #2B7217 #177231
triadic
#2B7217 #172B72 #72172B
tetradic
#2B7217 #175972 #5E1772 #723117
square
#2B7217 #175972 #5E1772 #723117
split-complementary
#2B7217 #311772 #721759
monochromatic
#0A1905 #183F0D #2B7217 #3EA521 #53D52E

Accessibility & contrast

On white

5.96
#2B7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2B7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7217
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7217#FFFFFF#000000##FFFFFF
##2B72171.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#6D6121
Tritanopia (blue-blind)
#226E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2b7217;
/* rgb */ color: rgb(43, 114, 23);
/* oklch */ color: oklch(48.8% 0.142 139.9);
Tailwind
colors: {
  custom: {
    50: '#6e9b5c',
    500: '#2b7217',
    950: '#000000',
  },
}
SCSS
$custom: #2b7217;
$custom-light: #6e9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7217",
  "rgb": {
    "r": 43,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 106.813,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48842,
    "c": 0.14179,
    "h": 139.9
  },
  "luminance": 0.1261
}

Semantic roles & 50–950 ramp

primary
#2B7217
secondary
#903DA8
accent
#3EE9C4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7217

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

Preview Lab → · Contrast checker → · Palette generator →

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