#2B7817#2B7817

#2B7817 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.6% C 0.149 H 140.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#2B7817
RGBrgb(43, 120, 23)
HSLhsl(108, 68%, 28%)
HSVhsv(108, 81%, 47%)
CMYKcmyk(64.2%, 0%, 80.8%, 52.9%)
CIE-LABlab(44.24, -41.77, 42.80)
CIE-LCHlch(44.24, 59.81, 134.30°)
OKLaboklab(50.56% -0.1146 0.0955)
OKLCHoklch(50.56% 0.149 140.2)
XYZxyz(7.8670, 14.0077, 3.0996)
Luminance0.1401 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7817 #641778
analogous
#5B7817 #2B7817 #177833
triadic
#2B7817 #172B78 #78172B
tetradic
#2B7817 #175B78 #641778 #783317
square
#2B7817 #175B78 #641778 #783317
split-complementary
#2B7817 #331778 #78175B
monochromatic
#091A05 #19450D #2B7817 #3DAB21 #54D832

Accessibility & contrast

On white

5.52
#2B7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#2B7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7817
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7817#FFFFFF#000000##FFFFFF
##2B78171.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#726622
Tritanopia (blue-blind)
#207466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2b7817;
/* rgb */ color: rgb(43, 120, 23);
/* oklch */ color: oklch(50.6% 0.149 140.2);
Tailwind
colors: {
  custom: {
    50: '#6fa05c',
    500: '#2b7817',
    950: '#000000',
  },
}
SCSS
$custom: #2b7817;
$custom-light: #6fa05c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7817",
  "rgb": {
    "r": 43,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 107.629,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50558,
    "c": 0.1492,
    "h": 140.2
  },
  "luminance": 0.14008
}

Semantic roles & 50–950 ramp

primary
#2B7817
secondary
#963EAD
accent
#3DEBC7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2B7817

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

Preview Lab → · Contrast checker → · Palette generator →

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