#2B7B18#2B7B18

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

Color values

HEX#2B7B18
RGBrgb(43, 123, 24)
HSLhsl(108, 67%, 29%)
HSVhsv(108, 80%, 48%)
CMYKcmyk(65%, 0%, 80.5%, 51.8%)
CIE-LABlab(45.28, -42.82, 43.46)
CIE-LCHlch(45.28, 61.01, 134.58°)
OKLaboklab(51.42% -0.1174 0.0971)
OKLCHoklch(51.42% 0.152 140.4)
XYZxyz(8.2437, 14.7447, 3.2755)
Luminance0.1474 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7B18 #68187B
analogous
#5D7B18 #2B7B18 #187B37
triadic
#2B7B18 #182B7B #7B182B
tetradic
#2B7B18 #185D7B #68187B #7B3718
square
#2B7B18 #185D7B #68187B #7B3718
split-complementary
#2B7B18 #37187B #7B185D
monochromatic
#091A05 #19480E #2B7B18 #3DAE22 #55D836

Accessibility & contrast

On white

5.32
#2B7B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2B7B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7B18
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7B18#FFFFFF#000000##FFFFFF
##2B7B181.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#1F7768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2b7b18;
/* rgb */ color: rgb(43, 123, 24);
/* oklch */ color: oklch(51.4% 0.152 140.4);
Tailwind
colors: {
  custom: {
    50: '#70a25d',
    500: '#2b7b18',
    950: '#000000',
  },
}
SCSS
$custom: #2b7b18;
$custom-light: #70a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7b18",
  "rgb": {
    "r": 43,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 108.485,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5142,
    "c": 0.15231,
    "h": 140.4
  },
  "luminance": 0.14745
}

Semantic roles & 50–950 ramp

primary
#2B7B18
secondary
#9A3FB0
accent
#3EEAC9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2B7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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