#2B7F17#2B7F17

#2B7F17 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.5% C 0.158 H 140.5°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2B7F17
RGBrgb(43, 127, 23)
HSLhsl(108, 69%, 29%)
HSVhsv(108, 82%, 50%)
CMYKcmyk(66.1%, 0%, 81.9%, 50.2%)
CIE-LABlab(46.65, -44.36, 45.09)
CIE-LCHlch(46.65, 63.26, 134.53°)
OKLaboklab(52.55% -0.1216 0.1003)
OKLCHoklch(52.55% 0.158 140.5)
XYZxyz(8.7399, 15.7533, 3.3906)
Luminance0.1575 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7F17 #6B177F
analogous
#5F7F17 #2B7F17 #177F37
triadic
#2B7F17 #172B7F #7F172B
tetradic
#2B7F17 #175F7F #6B177F #7F3717
square
#2B7F17 #175F7F #6B177F #7F3717
split-complementary
#2B7F17 #37177F #7F175F
monochromatic
#091A05 #194B0E #2B7F17 #3DB320 #56DB36

Accessibility & contrast

On white

5.06
#2B7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2B7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7F17
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7F17#FFFFFF#000000##FFFFFF
##2B7F171.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#1D7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2b7f17;
/* rgb */ color: rgb(43, 127, 23);
/* oklch */ color: oklch(52.5% 0.158 140.5);
Tailwind
colors: {
  custom: {
    50: '#71a55e',
    500: '#2b7f17',
    950: '#000000',
  },
}
SCSS
$custom: #2b7f17;
$custom-light: #71a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7f17",
  "rgb": {
    "r": 43,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 108.462,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5255,
    "c": 0.15762,
    "h": 140.5
  },
  "luminance": 0.15754
}

Semantic roles & 50–950 ramp

primary
#2B7F17
secondary
#9D3EB4
accent
#3CECCA
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2B7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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