#1B7917#1B7917

#1B7917 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.4% C 0.156 H 142.4°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#1B7917
RGBrgb(27, 121, 23)
HSLhsl(118, 68%, 28%)
HSVhsv(118, 81%, 47%)
CMYKcmyk(77.7%, 0%, 81%, 52.5%)
CIE-LABlab(44.19, -45.51, 42.61)
CIE-LCHlch(44.19, 62.34, 136.89°)
OKLaboklab(50.4% -0.1237 0.0953)
OKLCHoklch(50.4% 0.156 142.4)
XYZxyz(7.4436, 13.9688, 3.1144)
Luminance0.1397 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7917 #751779
analogous
#4C7917 #1B7917 #177944
triadic
#1B7917 #171B79 #79171B
tetradic
#1B7917 #174C79 #751779 #794417
square
#1B7917 #174C79 #751779 #794417
split-complementary
#1B7917 #441779 #79174C
monochromatic
#061A05 #10460D #1B7917 #26AC21 #39D832

Accessibility & contrast

On white

5.54
#1B7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#1B7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B7917
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B7917#FFFFFF#000000##FFFFFF
##1B79171.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#716622
Tritanopia (blue-blind)
#007567
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1b7917;
/* rgb */ color: rgb(27, 121, 23);
/* oklch */ color: oklch(50.4% 0.156 142.4);
Tailwind
colors: {
  custom: {
    50: '#69a15d',
    500: '#1b7917',
    950: '#000000',
  },
}
SCSS
$custom: #1b7917;
$custom-light: #69a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7917",
  "rgb": {
    "r": 27,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 117.551,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50397,
    "c": 0.15617,
    "h": 142.4
  },
  "luminance": 0.1397
}

Semantic roles & 50–950 ramp

primary
#1B7917
secondary
#A93EAE
accent
#3DEBE4
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#070F04
muted
#7A7F79

Preview Lab

Preview with #1B7917

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

Preview Lab → · Contrast checker → · Palette generator →

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