#2B6717#2B6717

#2B6717 is a mid, vivid green. Relative luminance 0.103; OKLCH L 45.7% C 0.128 H 139.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#2B6717
RGBrgb(43, 103, 23)
HSLhsl(105, 63%, 25%)
HSVhsv(105, 78%, 40%)
CMYKcmyk(58.3%, 0%, 77.7%, 59.6%)
CIE-LABlab(38.33, -35.10, 37.00)
CIE-LCHlch(38.33, 51.00, 133.49°)
OKLaboklab(45.67% -0.0966 0.0834)
OKLCHoklch(45.67% 0.128 139.2)
XYZxyz(6.0009, 10.2755, 2.4776)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B6717 #531767
analogous
#536717 #2B6717 #17672B
triadic
#2B6717 #172B67 #67172B
tetradic
#2B6717 #175367 #531767 #672B17
square
#2B6717 #175367 #531767 #672B17
split-complementary
#2B6717 #2B1767 #671753
monochromatic
#0A1906 #16350C #2B6717 #409922 #55CB2D

Accessibility & contrast

On white

6.87
#2B6717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2B6717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B6717
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B6717#FFFFFF#000000##FFFFFF
##2B67171.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D08
Deuteranopia (green-blind)
#63581F
Tritanopia (blue-blind)
#256358
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2b6717;
/* rgb */ color: rgb(43, 103, 23);
/* oklch */ color: oklch(45.7% 0.128 139.2);
Tailwind
colors: {
  custom: {
    50: '#6c935a',
    500: '#2b6717',
    950: '#000000',
  },
}
SCSS
$custom: #2b6717;
$custom-light: #6c935a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b6717",
  "rgb": {
    "r": 43,
    "g": 103,
    "b": 23
  },
  "hsl": {
    "h": 105,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45674,
    "c": 0.12765,
    "h": 139.2
  },
  "luminance": 0.10276
}

Semantic roles & 50–950 ramp

primary
#2B6717
secondary
#853D9D
accent
#41E7BD
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2B6717

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

Preview Lab → · Contrast checker → · Palette generator →

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