#1B871B#1B871B

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

Color values

HEX#1B871B
RGBrgb(27, 135, 27)
HSLhsl(120, 67%, 32%)
HSVhsv(120, 80%, 53%)
CMYKcmyk(80%, 0%, 80%, 47.1%)
CIE-LABlab(49.06, -49.90, 45.95)
CIE-LCHlch(49.06, 67.84, 137.36°)
OKLaboklab(54.45% -0.1354 0.1028)
OKLCHoklch(54.45% 0.17 142.8)
XYZxyz(9.3132, 17.6390, 3.9505)
Luminance0.1764 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B871B #871B87
analogous
#51871B #1B871B #1B8751
triadic
#1B871B #1B1B87 #871B1B
tetradic
#1B871B #1B5187 #871B87 #87511B
square
#1B871B #1B5187 #871B87 #87511B
split-complementary
#1B871B #511B87 #871B51
monochromatic
#072107 #115411 #1B871B #25BA25 #43D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B871B#FFFFFF#000000##FFFFFF
##1B871B1.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)
#8A7900
Deuteranopia (green-blind)
#7E7128
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1b871b;
/* rgb */ color: rgb(27, 135, 27);
/* oklch */ color: oklch(54.5% 0.170 142.8);
Tailwind
colors: {
  custom: {
    50: '#6dab60',
    500: '#1b871b',
    950: '#000000',
  },
}
SCSS
$custom: #1b871b;
$custom-light: #6dab60;
$custom-dark: #000000;
JSON
{
  "hex": "#1b871b",
  "rgb": {
    "r": 27,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 120,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54451,
    "c": 0.17006,
    "h": 142.8
  },
  "luminance": 0.1764
}

Semantic roles & 50–950 ramp

primary
#1B871B
secondary
#BA44BA
accent
#3EEAEA
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1B871B

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

Preview Lab → · Contrast checker → · Palette generator →

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