#2B7017#2B7017

#2B7017 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.3% C 0.139 H 139.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#2B7017
RGBrgb(43, 112, 23)
HSLhsl(107, 66%, 26%)
HSVhsv(107, 79%, 44%)
CMYKcmyk(61.6%, 0%, 79.5%, 56.1%)
CIE-LABlab(41.47, -38.70, 40.12)
CIE-LCHlch(41.47, 55.74, 133.97°)
OKLaboklab(48.27% -0.1063 0.0899)
OKLCHoklch(48.27% 0.139 139.8)
XYZxyz(6.9448, 12.1632, 2.7922)
Luminance0.1216 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7017 #5C1770
analogous
#587017 #2B7017 #177030
triadic
#2B7017 #172B70 #70172B
tetradic
#2B7017 #175870 #5C1770 #703017
square
#2B7017 #175870 #5C1770 #703017
split-complementary
#2B7017 #301770 #701758
monochromatic
#0A1905 #183D0D #2B7017 #3EA321 #53D42D

Accessibility & contrast

On white

6.12
#2B7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2B7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7017
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7017#FFFFFF#000000##FFFFFF
##2B70171.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736504
Deuteranopia (green-blind)
#6B6021
Tritanopia (blue-blind)
#226C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2b7017;
/* rgb */ color: rgb(43, 112, 23);
/* oklch */ color: oklch(48.3% 0.139 139.8);
Tailwind
colors: {
  custom: {
    50: '#6e9a5b',
    500: '#2b7017',
    950: '#000000',
  },
}
SCSS
$custom: #2b7017;
$custom-light: #6e9a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7017",
  "rgb": {
    "r": 43,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 106.517,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48268,
    "c": 0.13927,
    "h": 139.8
  },
  "luminance": 0.12164
}

Semantic roles & 50–950 ramp

primary
#2B7017
secondary
#8E3DA6
accent
#3FE9C3
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2B7017

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

Preview Lab → · Contrast checker → · Palette generator →

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