#1B771B#1B771B

#1B771B is a mid, vivid green. Relative luminance 0.135; OKLCH L 49.8% C 0.152 H 142.9°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#1B771B
RGBrgb(27, 119, 27)
HSLhsl(120, 63%, 29%)
HSVhsv(120, 77%, 47%)
CMYKcmyk(77.3%, 0%, 77.3%, 53.3%)
CIE-LABlab(43.51, -44.52, 40.50)
CIE-LCHlch(43.51, 60.18, 137.71°)
OKLaboklab(49.85% -0.1208 0.0915)
OKLCHoklch(49.85% 0.152 142.9)
XYZxyz(7.2462, 13.5050, 3.2615)
Luminance0.1351 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B771B #771B77
analogous
#49771B #1B771B #1B7749
triadic
#1B771B #1B1B77 #771B1B
tetradic
#1B771B #1B4977 #771B77 #77491B
square
#1B771B #1B4977 #771B77 #77491B
split-complementary
#1B771B #491B77 #771B49
monochromatic
#061906 #104510 #1B771B #26A926 #3AD23A

Accessibility & contrast

On white

5.67
#1B771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#1B771B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B771B
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B771B#FFFFFF#000000##FFFFFF
##1B771B1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B09
Deuteranopia (green-blind)
#6F6425
Tritanopia (blue-blind)
#007365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1b771b;
/* rgb */ color: rgb(27, 119, 27);
/* oklch */ color: oklch(49.8% 0.152 142.9);
Tailwind
colors: {
  custom: {
    50: '#689f5e',
    500: '#1b771b',
    950: '#000000',
  },
}
SCSS
$custom: #1b771b;
$custom-light: #689f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b771b",
  "rgb": {
    "r": 27,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 120,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49846,
    "c": 0.15155,
    "h": 142.9
  },
  "luminance": 0.13506
}

Semantic roles & 50–950 ramp

primary
#1B771B
secondary
#AB42AB
accent
#42E6E6
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #1B771B

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

Preview Lab → · Contrast checker → · Palette generator →

#1B771B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva