#1B7817#1B7817

#1B7817 is a mid, vivid green. Relative luminance 0.137; OKLCH L 50.1% C 0.155 H 142.4°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#1B7817
RGBrgb(27, 120, 23)
HSLhsl(118, 68%, 28%)
HSVhsv(118, 81%, 47%)
CMYKcmyk(77.5%, 0%, 80.8%, 52.9%)
CIE-LABlab(43.84, -45.17, 42.27)
CIE-LCHlch(43.84, 61.86, 136.90°)
OKLaboklab(50.11% -0.1228 0.0946)
OKLCHoklch(50.11% 0.155 142.4)
XYZxyz(7.3227, 13.7270, 3.0741)
Luminance0.1373 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7817 #741778
analogous
#4B7817 #1B7817 #177843
triadic
#1B7817 #171B78 #78171B
tetradic
#1B7817 #174B78 #741778 #784317
square
#1B7817 #174B78 #741778 #784317
split-complementary
#1B7817 #431778 #78174B
monochromatic
#061A05 #0F450D #1B7817 #27AB21 #39D832

Accessibility & contrast

On white

5.61
#1B7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#1B7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B7817
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B7817#FFFFFF#000000##FFFFFF
##1B78171.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#716522
Tritanopia (blue-blind)
#007466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1b7817;
/* rgb */ color: rgb(27, 120, 23);
/* oklch */ color: oklch(50.1% 0.155 142.4);
Tailwind
colors: {
  custom: {
    50: '#69a05c',
    500: '#1b7817',
    950: '#000000',
  },
}
SCSS
$custom: #1b7817;
$custom-light: #69a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7817",
  "rgb": {
    "r": 27,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 117.526,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50107,
    "c": 0.15501,
    "h": 142.4
  },
  "luminance": 0.13728
}

Semantic roles & 50–950 ramp

primary
#1B7817
secondary
#A93EAD
accent
#3DEBE4
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F04
muted
#7A7E79

Preview Lab

Preview with #1B7817

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

Preview Lab → · Contrast checker → · Palette generator →

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