#1B771F#1B771F

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

Color values

HEX#1B771F
RGBrgb(27, 119, 31)
HSLhsl(123, 63%, 29%)
HSVhsv(123, 77%, 47%)
CMYKcmyk(77.3%, 0%, 73.9%, 53.3%)
CIE-LABlab(43.54, -44.16, 38.94)
CIE-LCHlch(43.54, 58.87, 138.60°)
OKLaboklab(49.88% -0.1197 0.0888)
OKLCHoklch(49.88% 0.149 143.4)
XYZxyz(7.2957, 13.5248, 3.5221)
Luminance0.1353 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B771F #771B73
analogous
#45771B #1B771F #1B774D
triadic
#1B771F #1F1B77 #771F1B
tetradic
#1B771F #1B4577 #771B73 #774D1B
square
#1B771F #1B4577 #771B73 #774D1B
split-complementary
#1B771F #4D1B77 #771B45
monochromatic
#061906 #104512 #1B771F #26A92C #3AD241

Accessibility & contrast

On white

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

On black

3.71
#1B771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1B771F#FFFFFF#000000##FFFFFF
##1B771F1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B11
Deuteranopia (green-blind)
#6F6428
Tritanopia (blue-blind)
#007366
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1b771f;
/* rgb */ color: rgb(27, 119, 31);
/* oklch */ color: oklch(49.9% 0.149 143.4);
Tailwind
colors: {
  custom: {
    50: '#689f60',
    500: '#1b771f',
    950: '#000000',
  },
}
SCSS
$custom: #1b771f;
$custom-light: #689f60;
$custom-dark: #000000;
JSON
{
  "hex": "#1b771f",
  "rgb": {
    "r": 27,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 122.609,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49879,
    "c": 0.14899,
    "h": 143.4
  },
  "luminance": 0.13526
}

Semantic roles & 50–950 ramp

primary
#1B771F
secondary
#AB42A7
accent
#42DFE6
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #1B771F

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

Preview Lab → · Contrast checker → · Palette generator →

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