#178B1F#178B1F

#178B1F is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.5% C 0.173 H 143.5°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#178B1F
RGBrgb(23, 139, 31)
HSLhsl(124, 72%, 32%)
HSVhsv(124, 83%, 55%)
CMYKcmyk(83.5%, 0%, 77.7%, 45.5%)
CIE-LABlab(50.39, -51.44, 45.85)
CIE-LCHlch(50.39, 68.90, 138.29°)
OKLaboklab(55.55% -0.1393 0.1032)
OKLCHoklch(55.55% 0.173 143.5)
XYZxyz(9.8326, 18.7451, 4.3960)
Luminance0.1875 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178B1F #8B1783
analogous
#498B17 #178B1F #178B59
triadic
#178B1F #1F178B #8B1F17
tetradic
#178B1F #17498B #8B1783 #8B5917
square
#178B1F #17498B #8B1783 #8B5917
split-complementary
#178B1F #59178B #8B1749
monochromatic
#062208 #0E5613 #178B1F #20C02B #3DDF49

Accessibility & contrast

On white

4.42
#178B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#178B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178B1F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178B1F#FFFFFF#000000##000000
##178B1F1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D06
Deuteranopia (green-blind)
#82752B
Tritanopia (blue-blind)
#008776
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #178b1f;
/* rgb */ color: rgb(23, 139, 31);
/* oklch */ color: oklch(55.5% 0.173 143.5);
Tailwind
colors: {
  custom: {
    50: '#6cae63',
    500: '#178b1f',
    950: '#000000',
  },
}
SCSS
$custom: #178b1f;
$custom-light: #6cae63;
$custom-dark: #000000;
JSON
{
  "hex": "#178b1f",
  "rgb": {
    "r": 23,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 124.138,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.5555,
    "c": 0.17334,
    "h": 143.5
  },
  "luminance": 0.18746
}

Semantic roles & 50–950 ramp

primary
#178B1F
secondary
#BF3FB6
accent
#39E2EE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #178B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#178B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva