#2B7117#2B7117

#2B7117 is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.6% C 0.141 H 139.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#2B7117
RGBrgb(43, 113, 23)
HSLhsl(107, 66%, 27%)
HSVhsv(107, 80%, 44%)
CMYKcmyk(61.9%, 0%, 79.6%, 55.7%)
CIE-LABlab(41.82, -39.09, 40.45)
CIE-LCHlch(41.82, 56.26, 134.02°)
OKLaboklab(48.56% -0.1074 0.0906)
OKLCHoklch(48.56% 0.141 139.8)
XYZxyz(7.0557, 12.3851, 2.8292)
Luminance0.1239 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7117 #5D1771
analogous
#587117 #2B7117 #177130
triadic
#2B7117 #172B71 #71172B
tetradic
#2B7117 #175871 #5D1771 #713017
square
#2B7117 #175871 #5D1771 #713017
split-complementary
#2B7117 #301771 #711758
monochromatic
#0A1905 #183E0D #2B7117 #3EA421 #53D42E

Accessibility & contrast

On white

6.04
#2B7117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#2B7117 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7117
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7117#FFFFFF#000000##FFFFFF
##2B71171.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746603
Deuteranopia (green-blind)
#6C6021
Tritanopia (blue-blind)
#226D60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2b7117;
/* rgb */ color: rgb(43, 113, 23);
/* oklch */ color: oklch(48.6% 0.141 139.8);
Tailwind
colors: {
  custom: {
    50: '#6e9a5b',
    500: '#2b7117',
    950: '#000000',
  },
}
SCSS
$custom: #2b7117;
$custom-light: #6e9a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7117",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 23
  },
  "hsl": {
    "h": 106.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48555,
    "c": 0.14053,
    "h": 139.8
  },
  "luminance": 0.12386
}

Semantic roles & 50–950 ramp

primary
#2B7117
secondary
#8F3DA7
accent
#3FE9C3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7117

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

Preview Lab → · Contrast checker → · Palette generator →

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