#2B7F18#2B7F18

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

Color values

HEX#2B7F18
RGBrgb(43, 127, 24)
HSLhsl(109, 68%, 30%)
HSVhsv(109, 81%, 50%)
CMYKcmyk(66.1%, 0%, 81.1%, 50.2%)
CIE-LABlab(46.65, -44.30, 44.77)
CIE-LCHlch(46.65, 62.98, 134.69°)
OKLaboklab(52.56% -0.1213 0.0998)
OKLCHoklch(52.56% 0.157 140.6)
XYZxyz(8.7501, 15.7574, 3.4443)
Luminance0.1576 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7F18 #6C187F
analogous
#5F7F18 #2B7F18 #187F39
triadic
#2B7F18 #182B7F #7F182B
tetradic
#2B7F18 #185F7F #6C187F #7F3918
square
#2B7F18 #185F7F #6C187F #7F3918
split-complementary
#2B7F18 #39187F #7F185F
monochromatic
#091A05 #1A4C0E #2B7F18 #3CB222 #56D938

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B7F18#FFFFFF#000000##FFFFFF
##2B7F181.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)
#786C24
Tritanopia (blue-blind)
#1D7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2b7f18;
/* rgb */ color: rgb(43, 127, 24);
/* oklch */ color: oklch(52.6% 0.157 140.6);
Tailwind
colors: {
  custom: {
    50: '#71a55e',
    500: '#2b7f18',
    950: '#000000',
  },
}
SCSS
$custom: #2b7f18;
$custom-light: #71a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7f18",
  "rgb": {
    "r": 43,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 108.932,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52556,
    "c": 0.15712,
    "h": 140.6
  },
  "luminance": 0.15758
}

Semantic roles & 50–950 ramp

primary
#2B7F18
secondary
#9E3FB3
accent
#3DEBCB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2B7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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