#2B7A18#2B7A18

#2B7A18 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.151 H 140.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#2B7A18
RGBrgb(43, 122, 24)
HSLhsl(108, 67%, 29%)
HSVhsv(108, 80%, 48%)
CMYKcmyk(64.8%, 0%, 80.3%, 52.2%)
CIE-LABlab(44.94, -42.45, 43.13)
CIE-LCHlch(44.94, 60.51, 134.55°)
OKLaboklab(51.14% -0.1164 0.0964)
OKLCHoklch(51.14% 0.151 140.4)
XYZxyz(8.1203, 14.4978, 3.2344)
Luminance0.1450 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7A18 #67187A
analogous
#5C7A18 #2B7A18 #187A36
triadic
#2B7A18 #182B7A #7A182B
tetradic
#2B7A18 #185C7A #67187A #7A3618
square
#2B7A18 #185C7A #67187A #7A3618
split-complementary
#2B7A18 #36187A #7A185C
monochromatic
#091A05 #19470E #2B7A18 #3DAD22 #55D735

Accessibility & contrast

On white

5.38
#2B7A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#2B7A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7A18
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7A18#FFFFFF#000000##FFFFFF
##2B7A181.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#1F7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2b7a18;
/* rgb */ color: rgb(43, 122, 24);
/* oklch */ color: oklch(51.1% 0.151 140.4);
Tailwind
colors: {
  custom: {
    50: '#70a15d',
    500: '#2b7a18',
    950: '#000000',
  },
}
SCSS
$custom: #2b7a18;
$custom-light: #70a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7a18",
  "rgb": {
    "r": 43,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 108.367,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51135,
    "c": 0.1511,
    "h": 140.4
  },
  "luminance": 0.14499
}

Semantic roles & 50–950 ramp

primary
#2B7A18
secondary
#993FAF
accent
#3EEAC9
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2B7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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