#2B7A17#2B7A17

#2B7A17 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.152 H 140.3°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#2B7A17
RGBrgb(43, 122, 23)
HSLhsl(108, 68%, 28%)
HSVhsv(108, 81%, 48%)
CMYKcmyk(64.8%, 0%, 81.1%, 52.2%)
CIE-LABlab(44.93, -42.52, 43.46)
CIE-LCHlch(44.93, 60.80, 134.37°)
OKLaboklab(51.13% -0.1166 0.0969)
OKLCHoklch(51.13% 0.152 140.3)
XYZxyz(8.1101, 14.4937, 3.1806)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7A17 #66177A
analogous
#5C7A17 #2B7A17 #177A34
triadic
#2B7A17 #172B7A #7A172B
tetradic
#2B7A17 #175C7A #66177A #7A3417
square
#2B7A17 #175C7A #66177A #7A3417
split-complementary
#2B7A17 #34177A #7A175C
monochromatic
#091A05 #19470D #2B7A17 #3DAD21 #54D933

Accessibility & contrast

On white

5.39
#2B7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#2B7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7A17
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7A17#FFFFFF#000000##FFFFFF
##2B7A171.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#746822
Tritanopia (blue-blind)
#1F7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2b7a17;
/* rgb */ color: rgb(43, 122, 23);
/* oklch */ color: oklch(51.1% 0.152 140.3);
Tailwind
colors: {
  custom: {
    50: '#70a15d',
    500: '#2b7a17',
    950: '#000000',
  },
}
SCSS
$custom: #2b7a17;
$custom-light: #70a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7a17",
  "rgb": {
    "r": 43,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 107.879,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51129,
    "c": 0.15164,
    "h": 140.3
  },
  "luminance": 0.14495
}

Semantic roles & 50–950 ramp

primary
#2B7A17
secondary
#983EAF
accent
#3DEBC8
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2B7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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