#178D1F#178D1F

#178D1F is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.1% C 0.176 H 143.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#178D1F
RGBrgb(23, 141, 31)
HSLhsl(124, 72%, 32%)
HSVhsv(124, 84%, 55%)
CMYKcmyk(83.7%, 0%, 78%, 44.7%)
CIE-LABlab(51.07, -52.08, 46.52)
CIE-LCHlch(51.07, 69.83, 138.22°)
OKLaboklab(56.12% -0.141 0.1046)
OKLCHoklch(56.12% 0.176 143.4)
XYZxyz(10.1249, 19.3296, 4.4934)
Luminance0.1933 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178D1F #8D1785
analogous
#4A8D17 #178D1F #178D5A
triadic
#178D1F #1F178D #8D1F17
tetradic
#178D1F #174A8D #8D1785 #8D5A17
square
#178D1F #174A8D #8D1785 #8D5A17
split-complementary
#178D1F #5A178D #8D174A
monochromatic
#062408 #0E5813 #178D1F #20C22B #3FE04A

Accessibility & contrast

On white

4.32
#178D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#178D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178D1F
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178D1F#FFFFFF#000000##000000
##178D1F1.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F05
Deuteranopia (green-blind)
#84762B
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #178d1f;
/* rgb */ color: rgb(23, 141, 31);
/* oklch */ color: oklch(56.1% 0.176 143.4);
Tailwind
colors: {
  custom: {
    50: '#6db063',
    500: '#178d1f',
    950: '#000000',
  },
}
SCSS
$custom: #178d1f;
$custom-light: #6db063;
$custom-dark: #000000;
JSON
{
  "hex": "#178d1f",
  "rgb": {
    "r": 23,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 124.068,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56118,
    "c": 0.17557,
    "h": 143.4
  },
  "luminance": 0.19331
}

Semantic roles & 50–950 ramp

primary
#178D1F
secondary
#C040B7
accent
#39E2EF
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081106
muted
#7B807A

Preview Lab

Preview with #178D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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