#2B7018#2B7018

#2B7018 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.3% C 0.139 H 139.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#2B7018
RGBrgb(43, 112, 24)
HSLhsl(107, 65%, 27%)
HSVhsv(107, 79%, 44%)
CMYKcmyk(61.6%, 0%, 78.6%, 56.1%)
CIE-LABlab(41.48, -38.63, 39.75)
CIE-LCHlch(41.48, 55.43, 134.18°)
OKLaboklab(48.28% -0.1061 0.0893)
OKLCHoklch(48.28% 0.139 139.9)
XYZxyz(6.9550, 12.1673, 2.8460)
Luminance0.1217 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7018 #5D1870
analogous
#577018 #2B7018 #187031
triadic
#2B7018 #182B70 #70182B
tetradic
#2B7018 #185770 #5D1870 #703118
square
#2B7018 #185770 #5D1870 #703118
split-complementary
#2B7018 #311870 #701857
monochromatic
#0A1905 #183E0D #2B7018 #3EA223 #53D330

Accessibility & contrast

On white

6.12
#2B7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2B7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7018
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7018#FFFFFF#000000##FFFFFF
##2B70181.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736506
Deuteranopia (green-blind)
#6B6021
Tritanopia (blue-blind)
#226C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2b7018;
/* rgb */ color: rgb(43, 112, 24);
/* oklch */ color: oklch(48.3% 0.139 139.9);
Tailwind
colors: {
  custom: {
    50: '#6e9a5c',
    500: '#2b7018',
    950: '#000000',
  },
}
SCSS
$custom: #2b7018;
$custom-light: #6e9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7018",
  "rgb": {
    "r": 43,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 107.045,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48276,
    "c": 0.13868,
    "h": 139.9
  },
  "luminance": 0.12168
}

Semantic roles & 50–950 ramp

primary
#2B7018
secondary
#8F3EA5
accent
#40E8C4
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2B7018

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

Preview Lab → · Contrast checker → · Palette generator →

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