#2B7412#2B7412

#2B7412 is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.4% C 0.147 H 139.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#2B7412
RGBrgb(43, 116, 18)
HSLhsl(105, 73%, 26%)
HSVhsv(105, 84%, 45%)
CMYKcmyk(62.9%, 0%, 84.5%, 54.5%)
CIE-LABlab(42.83, -40.57, 43.09)
CIE-LCHlch(42.83, 59.19, 133.27°)
OKLaboklab(49.38% -0.1116 0.0954)
OKLCHoklch(49.38% 0.147 139.5)
XYZxyz(7.3505, 13.0474, 2.7032)
Luminance0.1305 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7412 #5B1274
analogous
#5C7412 #2B7412 #12742A
triadic
#2B7412 #122B74 #74122B
tetradic
#2B7412 #125C74 #5B1274 #742A12
square
#2B7412 #125C74 #5B1274 #742A12
split-complementary
#2B7412 #2A1274 #74125C
monochromatic
#0A1A04 #173F0A #2B7412 #3FA91A #53DD23

Accessibility & contrast

On white

5.82
#2B7412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#2B7412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7412
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7412#FFFFFF#000000##FFFFFF
##2B74121.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#6F631E
Tritanopia (blue-blind)
#227062
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2b7412;
/* rgb */ color: rgb(43, 116, 18);
/* oklch */ color: oklch(49.4% 0.147 139.5);
Tailwind
colors: {
  custom: {
    50: '#6f9d5a',
    500: '#2b7412',
    950: '#000000',
  },
}
SCSS
$custom: #2b7412;
$custom-light: #6f9d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7412",
  "rgb": {
    "r": 43,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 104.694,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.49384,
    "c": 0.14685,
    "h": 139.5
  },
  "luminance": 0.13048
}

Semantic roles & 50–950 ramp

primary
#2B7412
secondary
#8D37AB
accent
#38F0C1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7412

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

Preview Lab → · Contrast checker → · Palette generator →

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