#2B7C17#2B7C17

#2B7C17 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.154 H 140.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2B7C17
RGBrgb(43, 124, 23)
HSLhsl(108, 69%, 29%)
HSVhsv(108, 81%, 49%)
CMYKcmyk(65.3%, 0%, 81.5%, 51.4%)
CIE-LABlab(45.62, -43.26, 44.12)
CIE-LCHlch(45.62, 61.79, 134.44°)
OKLaboklab(51.7% -0.1186 0.0983)
OKLCHoklch(51.7% 0.154 140.4)
XYZxyz(8.3582, 14.9899, 3.2633)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7C17 #68177C
analogous
#5E7C17 #2B7C17 #177C36
triadic
#2B7C17 #172B7C #7C172B
tetradic
#2B7C17 #175E7C #68177C #7C3617
square
#2B7C17 #175E7C #68177C #7C3617
split-complementary
#2B7C17 #36177C #7C175E
monochromatic
#091A05 #19480D #2B7C17 #3DB021 #55D934

Accessibility & contrast

On white

5.25
#2B7C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2B7C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7C17
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7C17#FFFFFF#000000##FFFFFF
##2B7C171.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#1E7869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2b7c17;
/* rgb */ color: rgb(43, 124, 23);
/* oklch */ color: oklch(51.7% 0.154 140.4);
Tailwind
colors: {
  custom: {
    50: '#70a35d',
    500: '#2b7c17',
    950: '#000000',
  },
}
SCSS
$custom: #2b7c17;
$custom-light: #70a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7c17",
  "rgb": {
    "r": 43,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 108.119,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51698,
    "c": 0.15404,
    "h": 140.4
  },
  "luminance": 0.14991
}

Semantic roles & 50–950 ramp

primary
#2B7C17
secondary
#9A3EB1
accent
#3CECC9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2B7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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