#1B7517#1B7517

#1B7517 is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.2% C 0.151 H 142.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#1B7517
RGBrgb(27, 117, 23)
HSLhsl(117, 67%, 27%)
HSVhsv(117, 80%, 46%)
CMYKcmyk(76.9%, 0%, 80.3%, 54.1%)
CIE-LABlab(42.79, -44.14, 41.25)
CIE-LCHlch(42.79, 60.42, 136.94°)
OKLaboklab(49.23% -0.12 0.0925)
OKLCHoklch(49.23% 0.152 142.4)
XYZxyz(6.9675, 13.0167, 2.9557)
Luminance0.1302 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7517 #711775
analogous
#4A7517 #1B7517 #177542
triadic
#1B7517 #171B75 #75171B
tetradic
#1B7517 #174A75 #711775 #754217
square
#1B7517 #174A75 #711775 #754217
split-complementary
#1B7517 #421775 #75174A
monochromatic
#061A05 #0F420D #1B7517 #27A821 #37D630

Accessibility & contrast

On white

5.83
#1B7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#1B7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B7517
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B7517#FFFFFF#000000##FFFFFF
##1B75171.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786901
Deuteranopia (green-blind)
#6E6222
Tritanopia (blue-blind)
#007163
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #1b7517;
/* rgb */ color: rgb(27, 117, 23);
/* oklch */ color: oklch(49.2% 0.151 142.4);
Tailwind
colors: {
  custom: {
    50: '#689e5c',
    500: '#1b7517',
    950: '#000000',
  },
}
SCSS
$custom: #1b7517;
$custom-light: #689e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7517",
  "rgb": {
    "r": 27,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 117.447,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49234,
    "c": 0.1515,
    "h": 142.4
  },
  "luminance": 0.13017
}

Semantic roles & 50–950 ramp

primary
#1B7517
secondary
#A63DAA
accent
#3EEAE3
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1B7517

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

Preview Lab → · Contrast checker → · Palette generator →

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