#1B7A18#1B7A18

#1B7A18 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.7% C 0.157 H 142.5°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#1B7A18
RGBrgb(27, 122, 24)
HSLhsl(118, 67%, 29%)
HSVhsv(118, 80%, 48%)
CMYKcmyk(77.9%, 0%, 80.3%, 52.2%)
CIE-LABlab(44.54, -45.78, 42.61)
CIE-LCHlch(44.54, 62.54, 137.06°)
OKLaboklab(50.69% -0.1244 0.0954)
OKLCHoklch(50.69% 0.157 142.5)
XYZxyz(7.5759, 14.2172, 3.2089)
Luminance0.1422 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7A18 #77187A
analogous
#4C7A18 #1B7A18 #187A46
triadic
#1B7A18 #181B7A #7A181B
tetradic
#1B7A18 #184C7A #77187A #7A4618
square
#1B7A18 #184C7A #77187A #7A4618
split-complementary
#1B7A18 #46187A #7A184C
monochromatic
#061A05 #10470E #1B7A18 #26AD22 #3AD735

Accessibility & contrast

On white

5.46
#1B7A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#1B7A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B7A18
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B7A18#FFFFFF#000000##FFFFFF
##1B7A181.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E01
Deuteranopia (green-blind)
#726723
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1b7a18;
/* rgb */ color: rgb(27, 122, 24);
/* oklch */ color: oklch(50.7% 0.157 142.5);
Tailwind
colors: {
  custom: {
    50: '#69a15d',
    500: '#1b7a18',
    950: '#000000',
  },
}
SCSS
$custom: #1b7a18;
$custom-light: #69a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7a18",
  "rgb": {
    "r": 27,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 118.163,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50694,
    "c": 0.1568,
    "h": 142.5
  },
  "luminance": 0.14218
}

Semantic roles & 50–950 ramp

primary
#1B7A18
secondary
#AB3FAF
accent
#3EEAE5
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #1B7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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