#1B7818#1B7818

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

Color values

HEX#1B7818
RGBrgb(27, 120, 24)
HSLhsl(118, 67%, 28%)
HSVhsv(118, 80%, 47%)
CMYKcmyk(77.5%, 0%, 80%, 52.9%)
CIE-LABlab(43.84, -45.10, 41.93)
CIE-LCHlch(43.84, 61.58, 137.09°)
OKLaboklab(50.11% -0.1226 0.094)
OKLCHoklch(50.11% 0.154 142.5)
XYZxyz(7.3329, 13.7311, 3.1279)
Luminance0.1373 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7818 #751878
analogous
#4B7818 #1B7818 #187845
triadic
#1B7818 #181B78 #78181B
tetradic
#1B7818 #184B78 #751878 #784518
square
#1B7818 #184B78 #751878 #784518
split-complementary
#1B7818 #451878 #78184B
monochromatic
#061A05 #10450E #1B7818 #26AB22 #39D634

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B7818#FFFFFF#000000##FFFFFF
##1B78181.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)
#7B6C02
Deuteranopia (green-blind)
#716523
Tritanopia (blue-blind)
#007466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1b7818;
/* rgb */ color: rgb(27, 120, 24);
/* oklch */ color: oklch(50.1% 0.154 142.5);
Tailwind
colors: {
  custom: {
    50: '#69a05d',
    500: '#1b7818',
    950: '#000000',
  },
}
SCSS
$custom: #1b7818;
$custom-light: #69a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7818",
  "rgb": {
    "r": 27,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 118.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50114,
    "c": 0.15447,
    "h": 142.5
  },
  "luminance": 0.13732
}

Semantic roles & 50–950 ramp

primary
#1B7818
secondary
#A93FAD
accent
#3EEAE4
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F04
muted
#7A7E79

Preview Lab

Preview with #1B7818

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

Preview Lab → · Contrast checker → · Palette generator →

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