#1B771C#1B771C

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

Color values

HEX#1B771C
RGBrgb(27, 119, 28)
HSLhsl(121, 63%, 29%)
HSVhsv(121, 77%, 47%)
CMYKcmyk(77.3%, 0%, 76.5%, 53.3%)
CIE-LABlab(43.52, -44.43, 40.12)
CIE-LCHlch(43.52, 59.86, 137.92°)
OKLaboklab(49.85% -0.1206 0.0908)
OKLCHoklch(49.85% 0.151 143)
XYZxyz(7.2580, 13.5097, 3.3235)
Luminance0.1351 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B771C #771B76
analogous
#48771B #1B771C #1B774A
triadic
#1B771C #1C1B77 #771C1B
tetradic
#1B771C #1B4877 #771B76 #774A1B
square
#1B771C #1B4877 #771B76 #774A1B
split-complementary
#1B771C #4A1B77 #771B48
monochromatic
#061906 #104510 #1B771C #26A928 #3AD23C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B771C#FFFFFF#000000##FFFFFF
##1B771C1.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)
#7A6B0B
Deuteranopia (green-blind)
#6F6426
Tritanopia (blue-blind)
#007365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1b771c;
/* rgb */ color: rgb(27, 119, 28);
/* oklch */ color: oklch(49.9% 0.151 143.0);
Tailwind
colors: {
  custom: {
    50: '#689f5f',
    500: '#1b771c',
    950: '#000000',
  },
}
SCSS
$custom: #1b771c;
$custom-light: #689f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b771c",
  "rgb": {
    "r": 27,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 120.652,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49853,
    "c": 0.15093,
    "h": 143
  },
  "luminance": 0.13511
}

Semantic roles & 50–950 ramp

primary
#1B771C
secondary
#AB42AA
accent
#42E4E6
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #1B771C

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

Preview Lab → · Contrast checker → · Palette generator →

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