#18771C#18771C

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

Color values

HEX#18771C
RGBrgb(24, 119, 28)
HSLhsl(123, 66%, 28%)
HSVhsv(123, 80%, 47%)
CMYKcmyk(79.8%, 0%, 76.5%, 53.3%)
CIE-LABlab(43.46, -44.92, 40.04)
CIE-LCHlch(43.46, 60.18, 138.29°)
OKLaboklab(49.79% -0.1217 0.0907)
OKLCHoklch(49.79% 0.152 143.3)
XYZxyz(7.1827, 13.4708, 3.3200)
Luminance0.1347 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18771C #771873
analogous
#437718 #18771C #18774B
triadic
#18771C #1C1877 #771C18
tetradic
#18771C #184377 #771873 #774B18
square
#18771C #184377 #771873 #774B18
split-complementary
#18771C #4B1877 #771843
monochromatic
#051906 #0E4410 #18771C #22AA28 #33D63A

Accessibility & contrast

On white

5.68
#18771C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #18771C
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18771C#FFFFFF#000000##FFFFFF
##18771C1.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18771c;
/* rgb */ color: rgb(24, 119, 28);
/* oklch */ color: oklch(49.8% 0.152 143.3);
Tailwind
colors: {
  custom: {
    50: '#679f5f',
    500: '#18771c',
    950: '#000000',
  },
}
SCSS
$custom: #18771c;
$custom-light: #679f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#18771c",
  "rgb": {
    "r": 24,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 122.526,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.4979,
    "c": 0.15179,
    "h": 143.3
  },
  "luminance": 0.13472
}

Semantic roles & 50–950 ramp

primary
#18771C
secondary
#AC3FA7
accent
#3EE2E9
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #18771C

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

Preview Lab → · Contrast checker → · Palette generator →

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