#1B8517#1B8517

#1B8517 is a mid, vivid green. Relative luminance 0.171; OKLCH L 53.9% C 0.170 H 142.4°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#1B8517
RGBrgb(27, 133, 23)
HSLhsl(118, 71%, 31%)
HSVhsv(118, 83%, 52%)
CMYKcmyk(79.7%, 0%, 82.7%, 47.8%)
CIE-LABlab(48.35, -49.51, 46.57)
CIE-LCHlch(48.35, 67.97, 136.76°)
OKLaboklab(53.86% -0.1346 0.1035)
OKLCHoklch(53.86% 0.17 142.4)
XYZxyz(8.9936, 17.0689, 3.6311)
Luminance0.1707 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B8517 #811785
analogous
#528517 #1B8517 #17854A
triadic
#1B8517 #171B85 #85171B
tetradic
#1B8517 #175285 #811785 #854A17
square
#1B8517 #175285 #811785 #854A17
split-complementary
#1B8517 #4A1785 #851752
monochromatic
#061D05 #10510E #1B8517 #26B920 #3FDD3A

Accessibility & contrast

On white

4.76
#1B8517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#1B8517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B8517
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B8517#FFFFFF#000000##FFFFFF
##1B85171.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#008171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1b8517;
/* rgb */ color: rgb(27, 133, 23);
/* oklch */ color: oklch(53.9% 0.170 142.4);
Tailwind
colors: {
  custom: {
    50: '#6caa5e',
    500: '#1b8517',
    950: '#000000',
  },
}
SCSS
$custom: #1b8517;
$custom-light: #6caa5e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b8517",
  "rgb": {
    "r": 27,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 117.818,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53855,
    "c": 0.16979,
    "h": 142.4
  },
  "luminance": 0.1707
}

Semantic roles & 50–950 ramp

primary
#1B8517
secondary
#B53FB9
accent
#3BEDE7
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1B8517

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

Preview Lab → · Contrast checker → · Palette generator →

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