#2B7518#2B7518

#2B7518 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.7% C 0.145 H 140.2°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#2B7518
RGBrgb(43, 117, 24)
HSLhsl(108, 66%, 28%)
HSVhsv(108, 79%, 46%)
CMYKcmyk(63.2%, 0%, 79.5%, 54.1%)
CIE-LABlab(43.21, -40.56, 41.45)
CIE-LCHlch(43.21, 58.00, 134.38°)
OKLaboklab(49.71% -0.1113 0.0929)
OKLCHoklch(49.71% 0.145 140.2)
XYZxyz(7.5221, 13.3014, 3.0350)
Luminance0.1330 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7518 #621875
analogous
#597518 #2B7518 #187534
triadic
#2B7518 #182B75 #75182B
tetradic
#2B7518 #185975 #621875 #753418
square
#2B7518 #185975 #621875 #753418
split-complementary
#2B7518 #341875 #751859
monochromatic
#091905 #18420E #2B7518 #3EA822 #54D532

Accessibility & contrast

On white

5.74
#2B7518 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#2B7518 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7518
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7518#FFFFFF#000000##FFFFFF
##2B75181.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A03
Deuteranopia (green-blind)
#6F6422
Tritanopia (blue-blind)
#217163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2b7518;
/* rgb */ color: rgb(43, 117, 24);
/* oklch */ color: oklch(49.7% 0.145 140.2);
Tailwind
colors: {
  custom: {
    50: '#6f9d5c',
    500: '#2b7518',
    950: '#000000',
  },
}
SCSS
$custom: #2b7518;
$custom-light: #6f9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7518",
  "rgb": {
    "r": 43,
    "g": 117,
    "b": 24
  },
  "hsl": {
    "h": 107.742,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.49708,
    "c": 0.14496,
    "h": 140.2
  },
  "luminance": 0.13302
}

Semantic roles & 50–950 ramp

primary
#2B7518
secondary
#943FAA
accent
#3FE9C6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7518

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

Preview Lab → · Contrast checker → · Palette generator →

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