#178C1F#178C1F

#178C1F is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.8% C 0.174 H 143.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#178C1F
RGBrgb(23, 140, 31)
HSLhsl(124, 72%, 32%)
HSVhsv(124, 84%, 55%)
CMYKcmyk(83.6%, 0%, 77.9%, 45.1%)
CIE-LABlab(50.73, -51.76, 46.19)
CIE-LCHlch(50.73, 69.37, 138.25°)
OKLaboklab(55.83% -0.1401 0.1039)
OKLCHoklch(55.83% 0.174 143.4)
XYZxyz(9.9781, 19.0360, 4.4445)
Luminance0.1904 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178C1F #8C1784
analogous
#498C17 #178C1F #178C5A
triadic
#178C1F #1F178C #8C1F17
tetradic
#178C1F #17498C #8C1784 #8C5A17
square
#178C1F #17498C #8C1784 #8C5A17
split-complementary
#178C1F #5A178C #8C1749
monochromatic
#062308 #0E5713 #178C1F #20C12B #3EDF49

Accessibility & contrast

On white

4.37
#178C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#178C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178C1F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178C1F#FFFFFF#000000##000000
##178C1F1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#83752B
Tritanopia (blue-blind)
#008877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #178c1f;
/* rgb */ color: rgb(23, 140, 31);
/* oklch */ color: oklch(55.8% 0.174 143.4);
Tailwind
colors: {
  custom: {
    50: '#6daf63',
    500: '#178c1f',
    950: '#000000',
  },
}
SCSS
$custom: #178c1f;
$custom-light: #6daf63;
$custom-dark: #000000;
JSON
{
  "hex": "#178c1f",
  "rgb": {
    "r": 23,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 124.103,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55834,
    "c": 0.17445,
    "h": 143.4
  },
  "luminance": 0.19037
}

Semantic roles & 50–950 ramp

primary
#178C1F
secondary
#BF3FB7
accent
#39E2EF
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #178C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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