#2B7815#2B7815

#2B7815 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.150 H 140.0°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#2B7815
RGBrgb(43, 120, 21)
HSLhsl(107, 70%, 28%)
HSVhsv(107, 83%, 47%)
CMYKcmyk(64.2%, 0%, 82.5%, 52.9%)
CIE-LABlab(44.23, -41.90, 43.46)
CIE-LCHlch(44.23, 60.37, 133.96°)
OKLaboklab(50.55% -0.1151 0.0966)
OKLCHoklch(50.55% 0.15 140)
XYZxyz(7.8477, 13.9999, 2.9980)
Luminance0.1400 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7815 #621578
analogous
#5C7815 #2B7815 #157831
triadic
#2B7815 #152B78 #78152B
tetradic
#2B7815 #155C78 #621578 #783115
square
#2B7815 #155C78 #621578 #783115
split-complementary
#2B7815 #311578 #78155C
monochromatic
#091A05 #18440C #2B7815 #3EAC1E #54DA2D

Accessibility & contrast

On white

5.53
#2B7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#2B7815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7815
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7815#FFFFFF#000000##FFFFFF
##2B78151.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6C00
Deuteranopia (green-blind)
#726621
Tritanopia (blue-blind)
#207466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2b7815;
/* rgb */ color: rgb(43, 120, 21);
/* oklch */ color: oklch(50.5% 0.150 140.0);
Tailwind
colors: {
  custom: {
    50: '#6fa05c',
    500: '#2b7815',
    950: '#000000',
  },
}
SCSS
$custom: #2b7815;
$custom-light: #6fa05c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7815",
  "rgb": {
    "r": 43,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 106.667,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.50546,
    "c": 0.15024,
    "h": 140
  },
  "luminance": 0.14001
}

Semantic roles & 50–950 ramp

primary
#2B7815
secondary
#943BAE
accent
#3BEDC5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2B7815

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

Preview Lab → · Contrast checker → · Palette generator →

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