#2B7317#2B7317

#2B7317 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.143 H 139.9°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2B7317
RGBrgb(43, 115, 23)
HSLhsl(107, 67%, 27%)
HSVhsv(107, 80%, 45%)
CMYKcmyk(62.6%, 0%, 80%, 54.9%)
CIE-LABlab(42.52, -39.87, 41.13)
CIE-LCHlch(42.52, 57.28, 134.11°)
OKLaboklab(49.13% -0.1095 0.0921)
OKLCHoklch(49.13% 0.143 139.9)
XYZxyz(7.2813, 12.8363, 2.9044)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7317 #5F1773
analogous
#597317 #2B7317 #177331
triadic
#2B7317 #172B73 #73172B
tetradic
#2B7317 #175973 #5F1773 #733117
square
#2B7317 #175973 #5F1773 #733117
split-complementary
#2B7317 #311773 #731759
monochromatic
#0A1A05 #18400D #2B7317 #3EA621 #53D52F

Accessibility & contrast

On white

5.89
#2B7317 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#2B7317 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7317
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7317#FFFFFF#000000##FFFFFF
##2B73171.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766802
Deuteranopia (green-blind)
#6E6221
Tritanopia (blue-blind)
#226F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2b7317;
/* rgb */ color: rgb(43, 115, 23);
/* oklch */ color: oklch(49.1% 0.143 139.9);
Tailwind
colors: {
  custom: {
    50: '#6e9c5c',
    500: '#2b7317',
    950: '#000000',
  },
}
SCSS
$custom: #2b7317;
$custom-light: #6e9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7317",
  "rgb": {
    "r": 43,
    "g": 115,
    "b": 23
  },
  "hsl": {
    "h": 106.957,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.49129,
    "c": 0.14304,
    "h": 139.9
  },
  "luminance": 0.12837
}

Semantic roles & 50–950 ramp

primary
#2B7317
secondary
#913DA9
accent
#3EEAC4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7317

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

Preview Lab → · Contrast checker → · Palette generator →

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