#2B8D17#2B8D17

#2B8D17 is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.5% C 0.174 H 140.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#2B8D17
RGBrgb(43, 141, 23)
HSLhsl(110, 72%, 32%)
HSVhsv(110, 84%, 55%)
CMYKcmyk(69.5%, 0%, 83.7%, 44.7%)
CIE-LABlab(51.41, -49.32, 49.54)
CIE-LCHlch(51.41, 69.90, 134.87°)
OKLaboklab(56.5% -0.1349 0.1096)
OKLCHoklch(56.5% 0.174 140.9)
XYZxyz(10.6752, 19.6241, 4.0357)
Luminance0.1963 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B8D17 #79178D
analogous
#668D17 #2B8D17 #178D3E
triadic
#2B8D17 #172B8D #8D172B
tetradic
#2B8D17 #17668D #79178D #8D3E17
square
#2B8D17 #17668D #79178D #8D3E17
split-complementary
#2B8D17 #3E178D #8D1766
monochromatic
#0B2406 #1B580E #2B8D17 #3BC220 #5AE03F

Accessibility & contrast

On white

4.26
#2B8D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#2B8D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2B8D17
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B8D17#FFFFFF#000000##000000
##2B8D171.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#857826
Tritanopia (blue-blind)
#178878
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #2b8d17;
/* rgb */ color: rgb(43, 141, 23);
/* oklch */ color: oklch(56.5% 0.174 140.9);
Tailwind
colors: {
  custom: {
    50: '#74af60',
    500: '#2b8d17',
    950: '#000000',
  },
}
SCSS
$custom: #2b8d17;
$custom-light: #74af60;
$custom-dark: #000000;
JSON
{
  "hex": "#2b8d17",
  "rgb": {
    "r": 43,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 109.831,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56496,
    "c": 0.17385,
    "h": 140.9
  },
  "luminance": 0.19625
}

Semantic roles & 50–950 ramp

primary
#2B8D17
secondary
#AA40C0
accent
#39EFD0
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2B8D17

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

Preview Lab → · Contrast checker → · Palette generator →

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