#1B871C#1B871C

#1B871C is a mid, vivid green. Relative luminance 0.176; OKLCH L 54.5% C 0.170 H 142.9°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#1B871C
RGBrgb(27, 135, 28)
HSLhsl(121, 67%, 32%)
HSVhsv(121, 80%, 53%)
CMYKcmyk(80%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.06, -49.83, 45.62)
CIE-LCHlch(49.06, 67.56, 137.53°)
OKLaboklab(54.46% -0.1352 0.1023)
OKLCHoklch(54.46% 0.17 142.9)
XYZxyz(9.3250, 17.6437, 4.0125)
Luminance0.1764 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B871C #871B86
analogous
#50871B #1B871C #1B8752
triadic
#1B871C #1C1B87 #871C1B
tetradic
#1B871C #1B5087 #871B86 #87521B
square
#1B871C #1B5087 #871B86 #87521B
split-complementary
#1B871C #521B87 #871B50
monochromatic
#072107 #115411 #1B871C #25BA27 #43D944

Accessibility & contrast

On white

4.64
#1B871C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#1B871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1B871C
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B871C#FFFFFF#000000##FFFFFF
##1B871C1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A02
Deuteranopia (green-blind)
#7E7128
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1b871c;
/* rgb */ color: rgb(27, 135, 28);
/* oklch */ color: oklch(54.5% 0.170 142.9);
Tailwind
colors: {
  custom: {
    50: '#6cab61',
    500: '#1b871c',
    950: '#000000',
  },
}
SCSS
$custom: #1b871c;
$custom-light: #6cab61;
$custom-dark: #000000;
JSON
{
  "hex": "#1b871c",
  "rgb": {
    "r": 27,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 120.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54458,
    "c": 0.16953,
    "h": 142.9
  },
  "luminance": 0.17645
}

Semantic roles & 50–950 ramp

primary
#1B871C
secondary
#BA44B9
accent
#3EE8EA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1B871C

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

Preview Lab → · Contrast checker → · Palette generator →

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