#18771B#18771B

#18771B is a mid, vivid green. Relative luminance 0.135; OKLCH L 49.8% C 0.152 H 143.2°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#18771B
RGBrgb(24, 119, 27)
HSLhsl(122, 66%, 28%)
HSVhsv(122, 80%, 47%)
CMYKcmyk(79.8%, 0%, 77.3%, 53.3%)
CIE-LABlab(43.46, -45.01, 40.42)
CIE-LCHlch(43.46, 60.49, 138.07°)
OKLaboklab(49.78% -0.122 0.0913)
OKLCHoklch(49.78% 0.152 143.2)
XYZxyz(7.1709, 13.4661, 3.2580)
Luminance0.1347 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18771B #771874
analogous
#447718 #18771B #18774A
triadic
#18771B #1B1877 #771B18
tetradic
#18771B #184477 #771874 #774A18
square
#18771B #184477 #771874 #774A18
split-complementary
#18771B #4A1877 #771844
monochromatic
#051906 #0E440F #18771B #22AA27 #33D639

Accessibility & contrast

On white

5.69
#18771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#18771B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #18771B
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18771B#FFFFFF#000000##FFFFFF
##18771B1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B09
Deuteranopia (green-blind)
#6F6425
Tritanopia (blue-blind)
#007365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #18771b;
/* rgb */ color: rgb(24, 119, 27);
/* oklch */ color: oklch(49.8% 0.152 143.2);
Tailwind
colors: {
  custom: {
    50: '#679f5e',
    500: '#18771b',
    950: '#000000',
  },
}
SCSS
$custom: #18771b;
$custom-light: #679f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#18771b",
  "rgb": {
    "r": 24,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 121.895,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.49782,
    "c": 0.15241,
    "h": 143.2
  },
  "luminance": 0.13467
}

Semantic roles & 50–950 ramp

primary
#18771B
secondary
#AC3FA9
accent
#3EE4E9
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #18771B

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

Preview Lab → · Contrast checker → · Palette generator →

#18771B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva