#2B7E17#2B7E17

#2B7E17 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.156 H 140.4°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2B7E17
RGBrgb(43, 126, 23)
HSLhsl(108, 69%, 29%)
HSVhsv(108, 82%, 49%)
CMYKcmyk(65.9%, 0%, 81.7%, 50.6%)
CIE-LABlab(46.31, -43.99, 44.77)
CIE-LCHlch(46.31, 62.77, 134.50°)
OKLaboklab(52.27% -0.1206 0.0997)
OKLCHoklch(52.27% 0.156 140.4)
XYZxyz(8.6114, 15.4963, 3.3477)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7E17 #6A177E
analogous
#5F7E17 #2B7E17 #177E37
triadic
#2B7E17 #172B7E #7E172B
tetradic
#2B7E17 #175F7E #6A177E #7E3717
square
#2B7E17 #175F7E #6A177E #7E3717
split-complementary
#2B7E17 #37177E #7E175F
monochromatic
#091A05 #194A0E #2B7E17 #3DB220 #55DA35

Accessibility & contrast

On white

5.12
#2B7E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2B7E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7E17
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7E17#FFFFFF#000000##FFFFFF
##2B7E171.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786B23
Tritanopia (blue-blind)
#1E7A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2b7e17;
/* rgb */ color: rgb(43, 126, 23);
/* oklch */ color: oklch(52.3% 0.156 140.4);
Tailwind
colors: {
  custom: {
    50: '#70a45d',
    500: '#2b7e17',
    950: '#000000',
  },
}
SCSS
$custom: #2b7e17;
$custom-light: #70a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7e17",
  "rgb": {
    "r": 43,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 108.35,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52266,
    "c": 0.15644,
    "h": 140.4
  },
  "luminance": 0.15497
}

Semantic roles & 50–950 ramp

primary
#2B7E17
secondary
#9C3EB3
accent
#3CECCA
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2B7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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