#2B7D17#2B7D17

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

Color values

HEX#2B7D17
RGBrgb(43, 125, 23)
HSLhsl(108, 69%, 29%)
HSVhsv(108, 82%, 49%)
CMYKcmyk(65.6%, 0%, 81.6%, 51%)
CIE-LABlab(45.96, -43.63, 44.44)
CIE-LCHlch(45.96, 62.28, 134.47°)
OKLaboklab(51.98% -0.1196 0.099)
OKLCHoklch(51.98% 0.155 140.4)
XYZxyz(8.4841, 15.2419, 3.3053)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7D17 #69177D
analogous
#5E7D17 #2B7D17 #177D36
triadic
#2B7D17 #172B7D #7D172B
tetradic
#2B7D17 #175E7D #69177D #7D3617
square
#2B7D17 #175E7D #69177D #7D3617
split-complementary
#2B7D17 #36177D #7D175E
monochromatic
#091A05 #19490D #2B7D17 #3DB121 #55DA35

Accessibility & contrast

On white

5.19
#2B7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2B7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7D17
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7D17#FFFFFF#000000##FFFFFF
##2B7D171.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776A23
Tritanopia (blue-blind)
#1E796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2b7d17;
/* rgb */ color: rgb(43, 125, 23);
/* oklch */ color: oklch(52.0% 0.155 140.4);
Tailwind
colors: {
  custom: {
    50: '#70a35d',
    500: '#2b7d17',
    950: '#000000',
  },
}
SCSS
$custom: #2b7d17;
$custom-light: #70a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7d17",
  "rgb": {
    "r": 43,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 108.235,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51982,
    "c": 0.15524,
    "h": 140.4
  },
  "luminance": 0.15243
}

Semantic roles & 50–950 ramp

primary
#2B7D17
secondary
#9B3EB2
accent
#3CECC9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2B7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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