#1B871F#1B871F

#1B871F is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.5% C 0.168 H 143.2°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#1B871F
RGBrgb(27, 135, 31)
HSLhsl(122, 67%, 32%)
HSVhsv(122, 80%, 53%)
CMYKcmyk(80%, 0%, 77%, 47.1%)
CIE-LABlab(49.08, -49.60, 44.57)
CIE-LCHlch(49.08, 66.68, 138.06°)
OKLaboklab(54.48% -0.1344 0.1005)
OKLCHoklch(54.48% 0.168 143.2)
XYZxyz(9.3627, 17.6588, 4.2111)
Luminance0.1766 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B871F #871B83
analogous
#4D871B #1B871F #1B8755
triadic
#1B871F #1F1B87 #871F1B
tetradic
#1B871F #1B4D87 #871B83 #87551B
square
#1B871F #1B4D87 #871B83 #87551B
split-complementary
#1B871F #551B87 #871B4D
monochromatic
#072108 #115413 #1B871F #25BA2B #43D949

Accessibility & contrast

On white

4.63
#1B871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1B871F
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B871F#FFFFFF#000000##FFFFFF
##1B871F1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b871f;
/* rgb */ color: rgb(27, 135, 31);
/* oklch */ color: oklch(54.5% 0.168 143.2);
Tailwind
colors: {
  custom: {
    50: '#6cab62',
    500: '#1b871f',
    950: '#000000',
  },
}
SCSS
$custom: #1b871f;
$custom-light: #6cab62;
$custom-dark: #000000;
JSON
{
  "hex": "#1b871f",
  "rgb": {
    "r": 27,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 122.222,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54479,
    "c": 0.16786,
    "h": 143.2
  },
  "luminance": 0.1766
}

Semantic roles & 50–950 ramp

primary
#1B871F
secondary
#BA44B6
accent
#3EE3EA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1B871F

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

Preview Lab → · Contrast checker → · Palette generator →

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