#18771F#18771F

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

Color values

HEX#18771F
RGBrgb(24, 119, 31)
HSLhsl(124, 66%, 28%)
HSVhsv(124, 80%, 47%)
CMYKcmyk(79.8%, 0%, 73.9%, 53.3%)
CIE-LABlab(43.49, -44.65, 38.86)
CIE-LCHlch(43.49, 59.19, 138.97°)
OKLaboklab(49.82% -0.1208 0.0886)
OKLCHoklch(49.82% 0.15 143.8)
XYZxyz(7.2204, 13.4859, 3.5186)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18771F #771870
analogous
#407718 #18771F #18774E
triadic
#18771F #1F1877 #771F18
tetradic
#18771F #184077 #771870 #774E18
square
#18771F #184077 #771870 #774E18
split-complementary
#18771F #4E1877 #771840
monochromatic
#051907 #0E4412 #18771F #22AA2C #33D63F

Accessibility & contrast

On white

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

On black

3.70
#18771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##18771F#FFFFFF#000000##FFFFFF
##18771F1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B11
Deuteranopia (green-blind)
#6F6428
Tritanopia (blue-blind)
#007366
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #18771f;
/* rgb */ color: rgb(24, 119, 31);
/* oklch */ color: oklch(49.8% 0.150 143.8);
Tailwind
colors: {
  custom: {
    50: '#679f60',
    500: '#18771f',
    950: '#000000',
  },
}
SCSS
$custom: #18771f;
$custom-light: #679f60;
$custom-dark: #000000;
JSON
{
  "hex": "#18771f",
  "rgb": {
    "r": 24,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 124.421,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.49815,
    "c": 0.14985,
    "h": 143.8
  },
  "luminance": 0.13487
}

Semantic roles & 50–950 ramp

primary
#18771F
secondary
#AC3FA4
accent
#3EDDE9
background
#F6F9F5
surface
#EBF2EA
border
#C6CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #18771F

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

Preview Lab → · Contrast checker → · Palette generator →

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