#1B7D17#1B7D17

#1B7D17 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.6% C 0.161 H 142.4°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#1B7D17
RGBrgb(27, 125, 23)
HSLhsl(118, 69%, 29%)
HSVhsv(118, 82%, 49%)
CMYKcmyk(78.4%, 0%, 81.6%, 51%)
CIE-LABlab(45.58, -46.86, 43.95)
CIE-LCHlch(45.58, 64.24, 136.84°)
OKLaboklab(51.55% -0.1274 0.0981)
OKLCHoklch(51.55% 0.161 142.4)
XYZxyz(7.9398, 14.9612, 3.2798)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7D17 #79177D
analogous
#4E7D17 #1B7D17 #177D46
triadic
#1B7D17 #171B7D #7D171B
tetradic
#1B7D17 #174E7D #79177D #7D4617
square
#1B7D17 #174E7D #79177D #7D4617
split-complementary
#1B7D17 #46177D #7D174E
monochromatic
#061A05 #10490D #1B7D17 #26B121 #3BDA35

Accessibility & contrast

On white

5.26
#1B7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#1B7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B7D17
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B7D17#FFFFFF#000000##FFFFFF
##1B7D171.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1b7d17;
/* rgb */ color: rgb(27, 125, 23);
/* oklch */ color: oklch(51.6% 0.161 142.4);
Tailwind
colors: {
  custom: {
    50: '#6aa45d',
    500: '#1b7d17',
    950: '#000000',
  },
}
SCSS
$custom: #1b7d17;
$custom-light: #6aa45d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7d17",
  "rgb": {
    "r": 27,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 117.647,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51555,
    "c": 0.16077,
    "h": 142.4
  },
  "luminance": 0.14962
}

Semantic roles & 50–950 ramp

primary
#1B7D17
secondary
#AD3EB2
accent
#3CECE5
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1B7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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