#2B7318#2B7318

#2B7318 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.142 H 140.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2B7318
RGBrgb(43, 115, 24)
HSLhsl(107, 65%, 27%)
HSVhsv(107, 79%, 45%)
CMYKcmyk(62.6%, 0%, 79.1%, 54.9%)
CIE-LABlab(42.52, -39.80, 40.77)
CIE-LCHlch(42.52, 56.98, 134.30°)
OKLaboklab(49.14% -0.1092 0.0915)
OKLCHoklch(49.14% 0.142 140.1)
XYZxyz(7.2915, 12.8403, 2.9582)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7318 #601873
analogous
#587318 #2B7318 #187333
triadic
#2B7318 #182B73 #73182B
tetradic
#2B7318 #185873 #601873 #733318
square
#2B7318 #185873 #601873 #733318
split-complementary
#2B7318 #331873 #731858
monochromatic
#091905 #18400D #2B7318 #3EA623 #53D431

Accessibility & contrast

On white

5.89
#2B7318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#2B7318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7318
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7318#FFFFFF#000000##FFFFFF
##2B73181.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766804
Deuteranopia (green-blind)
#6D6222
Tritanopia (blue-blind)
#216F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2b7318;
/* rgb */ color: rgb(43, 115, 24);
/* oklch */ color: oklch(49.1% 0.142 140.1);
Tailwind
colors: {
  custom: {
    50: '#6e9c5c',
    500: '#2b7318',
    950: '#000000',
  },
}
SCSS
$custom: #2b7318;
$custom-light: #6e9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7318",
  "rgb": {
    "r": 43,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 107.473,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49136,
    "c": 0.14246,
    "h": 140.1
  },
  "luminance": 0.12841
}

Semantic roles & 50–950 ramp

primary
#2B7318
secondary
#923FA8
accent
#3FE8C5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7318

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

Preview Lab → · Contrast checker → · Palette generator →

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