#178A1F#178A1F

#178A1F is a mid, vivid green. Relative luminance 0.185; OKLCH L 55.3% C 0.172 H 143.5°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#178A1F
RGBrgb(23, 138, 31)
HSLhsl(124, 71%, 32%)
HSVhsv(124, 83%, 54%)
CMYKcmyk(83.3%, 0%, 77.5%, 45.9%)
CIE-LABlab(50.05, -51.11, 45.51)
CIE-LCHlch(50.05, 68.44, 138.32°)
OKLaboklab(55.27% -0.1384 0.1025)
OKLCHoklch(55.27% 0.172 143.5)
XYZxyz(9.6885, 18.4569, 4.3480)
Luminance0.1846 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178A1F #8A1782
analogous
#498A17 #178A1F #178A59
triadic
#178A1F #1F178A #8A1F17
tetradic
#178A1F #17498A #8A1782 #8A5917
square
#178A1F #17498A #8A1782 #8A5917
split-complementary
#178A1F #59178A #8A1749
monochromatic
#062107 #0E5613 #178A1F #20BE2B #3DDF48

Accessibility & contrast

On white

4.48
#178A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#178A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178A1F
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178A1F#FFFFFF#000000##000000
##178A1F1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C07
Deuteranopia (green-blind)
#81742B
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #178a1f;
/* rgb */ color: rgb(23, 138, 31);
/* oklch */ color: oklch(55.3% 0.172 143.5);
Tailwind
colors: {
  custom: {
    50: '#6cad63',
    500: '#178a1f',
    950: '#000000',
  },
}
SCSS
$custom: #178a1f;
$custom-light: #6cad63;
$custom-dark: #000000;
JSON
{
  "hex": "#178a1f",
  "rgb": {
    "r": 23,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 124.174,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55265,
    "c": 0.17221,
    "h": 143.5
  },
  "luminance": 0.18458
}

Semantic roles & 50–950 ramp

primary
#178A1F
secondary
#BE3FB5
accent
#3AE2EE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #178A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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