#2B8517#2B8517

#2B8517 is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.2% C 0.165 H 140.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#2B8517
RGBrgb(43, 133, 23)
HSLhsl(109, 71%, 31%)
HSVhsv(109, 83%, 52%)
CMYKcmyk(67.7%, 0%, 82.7%, 47.8%)
CIE-LABlab(48.70, -46.52, 47.02)
CIE-LCHlch(48.70, 66.14, 134.69°)
OKLaboklab(54.25% -0.1274 0.1044)
OKLCHoklch(54.25% 0.165 140.7)
XYZxyz(9.5380, 17.3495, 3.6566)
Luminance0.1735 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B8517 #711785
analogous
#628517 #2B8517 #17853A
triadic
#2B8517 #172B85 #85172B
tetradic
#2B8517 #176285 #711785 #853A17
square
#2B8517 #176285 #711785 #853A17
split-complementary
#2B8517 #3A1785 #851762
monochromatic
#091D05 #1A510E #2B8517 #3CB920 #57DD3A

Accessibility & contrast

On white

4.70
#2B8517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#2B8517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B8517
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B8517#FFFFFF#000000##FFFFFF
##2B85171.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#1B8171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2b8517;
/* rgb */ color: rgb(43, 133, 23);
/* oklch */ color: oklch(54.2% 0.165 140.7);
Tailwind
colors: {
  custom: {
    50: '#72a95e',
    500: '#2b8517',
    950: '#000000',
  },
}
SCSS
$custom: #2b8517;
$custom-light: #72a95e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b8517",
  "rgb": {
    "r": 43,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 109.091,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54247,
    "c": 0.16467,
    "h": 140.7
  },
  "luminance": 0.17351
}

Semantic roles & 50–950 ramp

primary
#2B8517
secondary
#A33FB9
accent
#3BEDCD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2B8517

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

Preview Lab → · Contrast checker → · Palette generator →

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