#2B7918#2B7918

#2B7918 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.8% C 0.150 H 140.3°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#2B7918
RGBrgb(43, 121, 24)
HSLhsl(108, 67%, 28%)
HSVhsv(108, 80%, 47%)
CMYKcmyk(64.5%, 0%, 80.2%, 52.5%)
CIE-LABlab(44.59, -42.08, 42.79)
CIE-LCHlch(44.59, 60.01, 134.52°)
OKLaboklab(50.85% -0.1154 0.0957)
OKLCHoklch(50.85% 0.15 140.3)
XYZxyz(7.9981, 14.2535, 3.1937)
Luminance0.1425 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7918 #661879
analogous
#5B7918 #2B7918 #187935
triadic
#2B7918 #182B79 #79182B
tetradic
#2B7918 #185B79 #661879 #793518
square
#2B7918 #185B79 #661879 #793518
split-complementary
#2B7918 #351879 #79185B
monochromatic
#091A05 #19460E #2B7918 #3DAC22 #54D735

Accessibility & contrast

On white

5.45
#2B7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#2B7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7918
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7918#FFFFFF#000000##FFFFFF
##2B79181.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#1F7567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2b7918;
/* rgb */ color: rgb(43, 121, 24);
/* oklch */ color: oklch(50.8% 0.150 140.3);
Tailwind
colors: {
  custom: {
    50: '#6fa05d',
    500: '#2b7918',
    950: '#000000',
  },
}
SCSS
$custom: #2b7918;
$custom-light: #6fa05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7918",
  "rgb": {
    "r": 43,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 108.247,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5085,
    "c": 0.14988,
    "h": 140.3
  },
  "luminance": 0.14254
}

Semantic roles & 50–950 ramp

primary
#2B7918
secondary
#983FAE
accent
#3EEAC8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2B7918

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

Preview Lab → · Contrast checker → · Palette generator →

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