#2B6817#2B6817

#2B6817 is a mid, vivid green. Relative luminance 0.105; OKLCH L 46.0% C 0.129 H 139.3°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2B6817
RGBrgb(43, 104, 23)
HSLhsl(105, 64%, 25%)
HSVhsv(105, 78%, 41%)
CMYKcmyk(58.7%, 0%, 77.9%, 59.2%)
CIE-LABlab(38.68, -35.50, 37.35)
CIE-LCHlch(38.68, 51.54, 133.55°)
OKLaboklab(45.96% -0.0977 0.0842)
OKLCHoklch(45.96% 0.129 139.3)
XYZxyz(6.1010, 10.4756, 2.5109)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B6817 #541768
analogous
#546817 #2B6817 #17682B
triadic
#2B6817 #172B68 #68172B
tetradic
#2B6817 #175468 #541768 #682B17
square
#2B6817 #175468 #541768 #682B17
split-complementary
#2B6817 #2B1768 #681754
monochromatic
#0A1906 #16360C #2B6817 #409A22 #54CC2D

Accessibility & contrast

On white

6.78
#2B6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2B6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B6817
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B6817#FFFFFF#000000##FFFFFF
##2B68171.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E07
Deuteranopia (green-blind)
#63591F
Tritanopia (blue-blind)
#256458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2b6817;
/* rgb */ color: rgb(43, 104, 23);
/* oklch */ color: oklch(46.0% 0.129 139.3);
Tailwind
colors: {
  custom: {
    50: '#6c945a',
    500: '#2b6817',
    950: '#000000',
  },
}
SCSS
$custom: #2b6817;
$custom-light: #6c945a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b6817",
  "rgb": {
    "r": 43,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 105.185,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.45963,
    "c": 0.12897,
    "h": 139.3
  },
  "luminance": 0.10476
}

Semantic roles & 50–950 ramp

primary
#2B6817
secondary
#863D9E
accent
#41E7BE
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2B6817

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

Preview Lab → · Contrast checker → · Palette generator →

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