#1B7218#1B7218

#1B7218 is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.4% C 0.147 H 142.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#1B7218
RGBrgb(27, 114, 24)
HSLhsl(118, 65%, 27%)
HSVhsv(118, 79%, 45%)
CMYKcmyk(76.3%, 0%, 78.9%, 55.3%)
CIE-LABlab(41.74, -43.02, 39.86)
CIE-LCHlch(41.74, 58.65, 137.18°)
OKLaboklab(48.37% -0.1169 0.0897)
OKLCHoklch(48.37% 0.147 142.5)
XYZxyz(6.6338, 12.3328, 2.8948)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7218 #6F1872
analogous
#487218 #1B7218 #187242
triadic
#1B7218 #181B72 #72181B
tetradic
#1B7218 #184872 #6F1872 #724218
square
#1B7218 #184872 #6F1872 #724218
split-complementary
#1B7218 #421872 #721848
monochromatic
#061905 #0F3F0D #1B7218 #27A523 #36D431

Accessibility & contrast

On white

6.06
#1B7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#1B7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B7218
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B7218#FFFFFF#000000##FFFFFF
##1B72181.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#6B6022
Tritanopia (blue-blind)
#006E61
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1b7218;
/* rgb */ color: rgb(27, 114, 24);
/* oklch */ color: oklch(48.4% 0.147 142.5);
Tailwind
colors: {
  custom: {
    50: '#679b5c',
    500: '#1b7218',
    950: '#000000',
  },
}
SCSS
$custom: #1b7218;
$custom-light: #679b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7218",
  "rgb": {
    "r": 27,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 118,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.48366,
    "c": 0.14737,
    "h": 142.5
  },
  "luminance": 0.12334
}

Semantic roles & 50–950 ramp

primary
#1B7218
secondary
#A43EA7
accent
#40E8E3
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1B7218

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

Preview Lab → · Contrast checker → · Palette generator →

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