#2B7315#2B7315

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

Color values

HEX#2B7315
RGBrgb(43, 115, 21)
HSLhsl(106, 69%, 27%)
HSVhsv(106, 82%, 45%)
CMYKcmyk(62.6%, 0%, 81.7%, 54.9%)
CIE-LABlab(42.50, -40.01, 41.82)
CIE-LCHlch(42.50, 57.87, 133.73°)
OKLaboklab(49.11% -0.11 0.0932)
OKLCHoklch(49.11% 0.144 139.7)
XYZxyz(7.2620, 12.8285, 2.8028)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7315 #5D1573
analogous
#5A7315 #2B7315 #15732E
triadic
#2B7315 #152B73 #73152B
tetradic
#2B7315 #155A73 #5D1573 #732E15
square
#2B7315 #155A73 #5D1573 #732E15
split-complementary
#2B7315 #2E1573 #73155A
monochromatic
#0A1A05 #183F0C #2B7315 #3EA71E #53D82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B7315#FFFFFF#000000##FFFFFF
##2B73151.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)
#766800
Deuteranopia (green-blind)
#6E6220
Tritanopia (blue-blind)
#226F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2b7315;
/* rgb */ color: rgb(43, 115, 21);
/* oklch */ color: oklch(49.1% 0.144 139.7);
Tailwind
colors: {
  custom: {
    50: '#6e9c5b',
    500: '#2b7315',
    950: '#000000',
  },
}
SCSS
$custom: #2b7315;
$custom-light: #6e9c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7315",
  "rgb": {
    "r": 43,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 105.957,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.49115,
    "c": 0.14413,
    "h": 139.7
  },
  "luminance": 0.12829
}

Semantic roles & 50–950 ramp

primary
#2B7315
secondary
#8F3BA9
accent
#3CECC3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7315

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

Preview Lab → · Contrast checker → · Palette generator →

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