#2B7417#2B7417

#2B7417 is a mid, vivid green. Relative luminance 0.131; OKLCH L 49.4% C 0.144 H 140.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#2B7417
RGBrgb(43, 116, 23)
HSLhsl(107, 67%, 27%)
HSVhsv(107, 80%, 45%)
CMYKcmyk(62.9%, 0%, 80.2%, 54.5%)
CIE-LABlab(42.86, -40.25, 41.47)
CIE-LCHlch(42.86, 57.79, 134.15°)
OKLaboklab(49.42% -0.1105 0.0928)
OKLCHoklch(49.42% 0.144 140)
XYZxyz(7.3960, 13.0656, 2.9426)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7417 #601774
analogous
#597417 #2B7417 #177432
triadic
#2B7417 #172B74 #74172B
tetradic
#2B7417 #175974 #601774 #743217
square
#2B7417 #175974 #601774 #743217
split-complementary
#2B7417 #321774 #741759
monochromatic
#091A05 #18410D #2B7417 #3EA721 #53D630

Accessibility & contrast

On white

5.81
#2B7417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#2B7417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7417
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7417#FFFFFF#000000##FFFFFF
##2B74171.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776902
Deuteranopia (green-blind)
#6E6321
Tritanopia (blue-blind)
#217063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2b7417;
/* rgb */ color: rgb(43, 116, 23);
/* oklch */ color: oklch(49.4% 0.144 140.0);
Tailwind
colors: {
  custom: {
    50: '#6e9d5c',
    500: '#2b7417',
    950: '#000000',
  },
}
SCSS
$custom: #2b7417;
$custom-light: #6e9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7417",
  "rgb": {
    "r": 43,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 107.097,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49415,
    "c": 0.14428,
    "h": 140
  },
  "luminance": 0.13066
}

Semantic roles & 50–950 ramp

primary
#2B7417
secondary
#923DA9
accent
#3EEAC5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7417

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

Preview Lab → · Contrast checker → · Palette generator →

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